• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Moving a file between two remote mounted volumes and maintaining creation / modification date
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Moving a file between two remote mounted volumes and maintaining creation / modification date


  • Subject: Re: Moving a file between two remote mounted volumes and maintaining creation / modification date
  • From: Jim Skibbie <email@hidden>
  • Date: Thu, 26 Mar 2009 13:13:55 -0500
  • Thread-topic: Moving a file between two remote mounted volumes and maintaining creation / modification date

Title: Re: Moving a file between two remote mounted volumes and maintaining creation / modification date
Are you suggesting moving the file and then changing the modification date back to what it was on the file before it was moved?

I’m assuming you cannot change the ‘creation date’? So I could end up with a file with a creation date with today’s date (the date/time the mv command was triggered), but a modification date of some time in the past if I figured out what the mod. date was and touched the file to restore it?

There isn’t a simpler way to preserve the dates?

Thanks.
Jim

On Mar 26, 2009, at 12:09 , Rainer Standke wrote:

Jim
You might want to look at man touch in the shell. At least at first  
glance that should do what you are asking for.

Rainer


On Mar 26, 2009, at 9:41 , Jim Skibbie wrote:

> 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      (applescript-
> email@hidden)
> Help/Unsubscribe/Update your Subscription:
> Archives: http://lists.apple.com/archives/applescript-users
>
> This email sent to email@hidden

 _______________________________________________
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

  • Follow-Ups:
    • Re: Moving a file between two remote mounted volumes and maintaining creation / modification date
      • From: Luther Fuller <email@hidden>
References: 
 >Re: Moving a file between two remote mounted volumes and maintaining creation / modification date (From: Rainer Standke <email@hidden>)

  • Prev by Date: Recycling Email Drafts in Mail
  • Next by Date: Re: Moving a file between two remote mounted volumes and maintaining creation / modification date
  • Previous by thread: Re: Moving a file between two remote mounted volumes and maintaining creation / modification date
  • Next by thread: Re: Moving a file between two remote mounted volumes and maintaining creation / modification date
  • Index(es):
    • Date
    • Thread