Moving a file between two remote mounted volumes and maintaining creation / modification date
Moving a file between two remote mounted volumes and maintaining creation / modification date
- Subject: Moving a file between two remote mounted volumes and maintaining creation / modification date
- From: Jim Skibbie <email@hidden>
- Date: Thu, 26 Mar 2009 11:41:47 -0500
- Thread-topic: Moving a file between two remote mounted volumes and maintaining creation / modification date
Title: Moving a file between two remote mounted volumes and maintaining creation / modification date
I’m running into an issue trying to move a file located on a remote unix server. The user has two afp mounted volumes mounted on their desktop from this remote server.
When I move this file via the Finder manually, the file creation/modification dates are preserved. I’m trying to use the Unix mv command to move the file because:
- the folder where this file is located is invisible (.FolderName) and the Finder doesn’t apparently like this;
- The Finder acts flaky anyways most of the time so I avoid scripting the Finder at all costs.
When I use the mv command in a do shell script “mv -f /Volumes/FirstMountedVolume/.Folder/this\ file /Volumes/SecondMountedVolume/Folder2/”
The file moves with the mv command, but the creation and modification date change to be the time when the file was moved.
Does anyone know of a way to move files and preserve the modification date?
Thanks.
Jim
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden