-
March 23rd, 2015, 12:18 PM
#1
copy and unlink
i have one doubt is it good to move the file from one path to other path.
Or it is good to copy the file and unlink.
-
March 23rd, 2015, 12:29 PM
#2
Re: copy and unlink
Move is more efficient, but it won't work across drives.
-
March 23rd, 2015, 12:36 PM
#3
Re: copy and unlink
across drives mean?
in linux i saw a code where i see copy and unlink to /mnt/mypath instead move
thats why the doubt
-
March 24th, 2015, 07:57 AM
#4
Re: copy and unlink
there is a very distinct difference.
Moving a file typically means that you will also move the access rights associated with the file into it's new location.
This could be what you want, but it could NOT be.
the copy/delete approach creates a new file, the new file inherits the rights from the folder it's being created in.
this assumes you're using 'normal' behaviour, you can also give the file specific access rights as part of the move.
-
March 25th, 2015, 09:14 PM
#5
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|