New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
File::Copy move() issue #9377
Comments
From Mark.Zealey@webfusion.comHi, The documentation for File::Copy's move() function says If possible, move() will simply rename the file. Otherwise, However, this does not seem to work all the time. Under some situations return 1 if rename $from, $to; dies rather than returns false (eg on linux trying to move a directory Thanks, Mark -- This mail is subject to http://www.gxn.net/disclaimer |
From @jkeenanI'm somewhat confused about your post. Your subject line suggests your " return 1 if rename $from, $to; "dies rather than returns false (eg on linux trying to move a directory 'perldoc -f rename' states: "Behavior of this function varies wildly depending on your 'man 2 rename' on Linux provides this error code: "EXDEV So it seems that the problem you cite is already documented. Can you Thank you very much. |
The RT System itself - Status changed from 'new' to 'open' |
From Mark.Zealey@webfusion.comThe code provided is from move() of File::Copy - as in the original bug report this line sometimes dies which means that the specification provided in the manual of File::Copy (namely that File::Copy::move() will work even when a normal rename() would fail) is not being followed. Mark |
Migrated from rt.perl.org#55730 (status was 'open')
Searchable as RT55730$
The text was updated successfully, but these errors were encountered: