• FileUtils.mv on MacOS

    From =?UTF-8?Q?Une_B=c3=a9vue?=@21:1/5 to All on Sun May 21 17:05:01 2017
    doing a FileUtils.mv src, dest
    does not remove original file on macOS, normal ?

    Reading : <https://ruby-doc.org/stdlib-2.2.2/libdoc/fileutils/rdoc/FileUtils.html#method-c-mv>

    states, at the opposite :
    mv(src, dest, options = {})
    Options: force noop verbose

    Moves file(s) src to dest. If file and dest exist on the different disk partition, the file is copied then the original file is removed.


    in my test src and dest where on different disks (not only partitions of
    the same disk).

    could that be due to the fact I've used the full path for dest ?
    That's to say :

    src = '/path/to/a_file.ext'

    dest = '/Another/volume/path/to/a_file.ext'

    ?

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From Doc O'Leary@21:1/5 to unbewusst.sein@fai.invalid on Sun May 21 18:41:16 2017
    For your reference, records indicate that
    =?UTF-8?Q?Une_B=c3=a9vue?= <unbewusst.sein@fai.invalid> wrote:

    doing a FileUtils.mv src, dest
    does not remove original file on macOS, normal ?

    Not enough info. Permissions and ACL for the files/directories involved
    will also play a role in what actually happens.

    --
    "Also . . . I can kill you with my brain."
    River Tam, Trash, Firefly

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)
  • From =?UTF-8?Q?Une_B=c3=a9vue?=@21:1/5 to All on Mon May 22 09:41:32 2017
    Le 21/05/2017 à 20:41, Doc O'Leary a écrit :
    Not enough info. Permissions and ACL for the files/directories involved
    will also play a role in what actually happens.

    OK, i see, fine thanks.

    --- SoupGate-Win32 v1.05
    * Origin: fsxNet Usenet Gateway (21:1/5)