File dates not being preserved for UNC copies ---------------------------------------------
Key: JRUBY-5991 URL: https://jira.codehaus.org/browse/JRUBY-5991 Project: JRuby Issue Type: Bug Components: Standard Library Affects Versions: JRuby 1.6.3 Environment: Windows 7 64-bit Reporter: David Escobar Assignee: Thomas E Enebo When copying files to a UNC path with the FileUtils.copy function, the modified and access times are not preserved - the current date/time is used instead. I'm using the option :preserve => true. Ex: FileUtils.copy("d:/temp/somefile.txt", "//drive/root/somefile.txt", :preserve => true) ...or using backslashes: FileUtils.copy("d:\\temp\\somefile.txt", "\\\\drive\\root\\somefile.txt", :preserve => true) This only occurs when the UNC path is the destination. When it is the source, the date/times are correctly set. -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe from this list, please visit: http://xircles.codehaus.org/manage_email