Modified timestamp of folder changes on MOVE?

Hi,

I've just moved a lot of sub-folders of a main folder into another main folder (same hard disc).

The modified timestamp of all sub-folders have been changed to "now".

When I copy the sub-folders - the modified timestamp does NOT change (in Preferences / File Operations / copy Attributes / Preserve the timestamp of copied files is selected).

Why does the modified timestamp of a "moved" folder change? The content of the sub-folder(s) itself did not change!

Is it possible to avoid this? Are there any settings in DO? It completely changes the "view" when something has been done in the sub-folder.

The modified timestamp of both (source, destination) main folders have changed (as awaited - because they changed).

Thanks a lot.

PS: Used Windows XP / DO 10.2

I've just played around:

Moved a folder from my local C: to another local C: folder. Modified timestamp does not change on destination. OK

Moved a folder from my C: to USB-stick. Modified timestamp does not change on destination. OK

In the example above I moved inside a network drive (M:) (in the company) and the modified timestamp changes. NOT OK

I think this is the reason why the modified timestamp changes! But it does not when I copy & delete (aka move) it. Maybe due the setting "Preserve modified timestamps of copied files" in DO (= DO put the hands on it).

DO should also put the hands on it when I "move" it.

They don't here, at least on Windows 7 and NTFS.

It's possible something is reacting to the change and modifying something below the moved folders as a result, in turn causing their timestamps to be bumped.

Hi Leo,

please read my previous comment.

When I move or copy on my local PC (C: or my connected USB) - the modified timestamp does not change.

When I copy on the company network drive M: - a DFS (Distributed File System) (copy a folder from M: to M: !) - the modified timestamp does NOT change.

But when I move from M: to M: the modified timestamp CHANGES.

Why?

Let's say: A COPY + DELETE should be prefered over a MOVE to avoid a change of the modified timestamp ? :wink:

And when I copy or move between 2 different DFS systems (L: => M:) the modified timestamp also does not change.

Only when I move (not copy!) on the same DFS the modified timestamp changes.

DO should put the hands on it! :slight_smile:

And as a side effect ... :laughing:

I saw the latest DO 10.2 changes on video and made the same very useful coloring of "show all files + folders in color (yellow) if modified in the past one hour" ... and those "moved" folders are now all yellow. :smiling_imp:

[quote="fuzi1968"]When I move or copy on my local PC (C: or my connected USB) - the modified timestamp does not change.

When I copy on the company network drive M: - a DFS (Distributed File System) (copy a folder from M: to M: !) - the modified timestamp does NOT change.

But when I move from M: to M: the modified timestamp CHANGES.

And when I copy or move between 2 different DFS systems (L: => M:) the modified timestamp also does not change.[/quote]

Moves between devices are done as a Copy-then-Delete, and Opus will (if configured) copy the timestamps across afterwards.

Moves on the same device are done as a simple Rename, and the tempstamps should not need to be modified.

What about when you move on the same local partition?

And what happens if you move a folder on the same DFS using Windows Explorer? Or just rename it from a Command Prompt?

Maybe the problem is that your DFS server/filesystem is changing the timestamp on moved/renamed folders.

Where in the video (minutes & seconds) are you referring to?

When you mean on the local hard disc C: ... the modify timestamp does not change - as written above (done with DO).

The modified timestamp changes. Not that what we want. :cry:

Rename in DO: No change of the modified timestamp! (also made a refresh!) :slight_smile:

Rename on Command Prompt: No change of the modified timestamp!: :slight_smile:

[code]M:\SECA>dir
Volume in drive M is DATA
Volume Serial Number is FC29-8782

Directory of M:\SECA

2012-10-17 10:05 .
2012-10-15 08:45 ..
2012-10-17 10:03 UML
2012-10-17 10:03 Misc
2012-10-17 08:52 Brokerjet
0 File(s) 0 bytes
5 Dir(s) 1.209.264.254.976 bytes free

M:\SECA>rename Misc Misc2

M:\SECA>dir
Volume in drive M is DATA
Volume Serial Number is FC29-8782

Directory of M:\SECA

2012-10-17 10:06 .
2012-10-15 08:45 ..
2012-10-17 10:03 Misc2
2012-10-17 10:03 UML
2012-10-17 08:52 Brokerjet
0 File(s) 0 bytes
5 Dir(s) 1.209.263.210.496 bytes free

M:\SECA>time /T
10:07
[/code]

After renaming back I tried the move on the Command Prompt:

M:\SECA>dir
 Volume in drive M is DATA
 Volume Serial Number is FC29-8782

 Directory of M:\SECA

2012-10-17  10:09    <DIR>          .
2012-10-15  08:45    <DIR>          ..
2012-10-17  10:03    <DIR>          UML
2012-10-17  10:03    <DIR>          Misc
2012-10-17  08:52    <DIR>          Brokerjet
               0 File(s)              0 bytes
               5 Dir(s)  1.209.774.084.096 bytes free

M:\SECA>move Misc UML

M:\SECA>dir UML
 Volume in drive M is DATA
 Volume Serial Number is FC29-8782

 Directory of M:\SECA\UML

2012-10-17  10:10    <DIR>          .
2012-10-17  10:10    <DIR>          ..
2010-05-10  21:10           532.914 UML2.2-Visio2003.zip
2010-05-10  21:09           933.156 SOPHIST UML2 V1.6.zip
2012-10-17  10:10    <DIR>          Misc
               2 File(s)      1.466.070 bytes
               3 Dir(s)  1.209.770.602.496 bytes free

Only the "move" on the same DFS CHANGES the modified timestamp. :cry:

The rename (and copy) on the same DFS does NOT change the modified timestamp. :slight_smile:

[quote]Where in the video (minutes & seconds) are you referring to?[/quote] Hmm ... early at the beginning after showing the new different DO versions (light/pro). .. However - not important.

[quote="fuzi1968"][When using Windows Explorer] The modified timestamp changes. Not that what we want. :cry:

...

After renaming back I tried the move on the Command Prompt:
...
Only the "move" on the same DFS CHANGES the modified timestamp. :cry: [/quote]

So your DFS is the problem.

I don't think the 'modified within 1 hour' highlight is turned on at all at that point in the video.

Dear Leo,

I don't think that "the DFS is the problem."

From the logical point, a "move" is a "copy + delete" - regardless if it is on the same drive or not.

The tricky thing here is that Windows/DO uses "rename" when "moving" on the same drive letter because the result under Windows - which is "sitting" on these kind of drives (FAT32, NTFS) - is the same result.

Copy from C: => C:

C:\Test>dir
 Volume in drive C is Festplatte
 Volume Serial Number is 7044-29C0

 Directory of C:\Test

2012-10-17  12:08    <DIR>          .
2012-10-17  12:08    <DIR>          ..
2012-10-17  12:08    <DIR>          TestDir
               0 File(s)              0 bytes
               3 Dir(s)  124.268.838.912 bytes free

C:\Test>dir ..\Test2
 Volume in drive C is Festplatte
 Volume Serial Number is 7044-29C0

 Directory of C:\Test2

2012-10-17  12:08    <DIR>          .
2012-10-17  12:08    <DIR>          ..
               0 File(s)              0 bytes
               2 Dir(s)  124.268.838.912 bytes free

C:\Test>copy TestDir ..\Test2\TestDir
TestDir\Testfile.pdf
        1 file(s) copied.

C:\Test>dir ..\Test2
 Volume in drive C is Festplatte
 Volume Serial Number is 7044-29C0

 Directory of C:\Test2

2012-10-17  12:13    <DIR>          .
2012-10-17  12:13    <DIR>          ..
2012-10-17  12:13             1.069 TestDir
               1 File(s)          1.069 bytes
               2 Dir(s)  124.268.834.816 bytes free

=> Normal copy => new timestamp.
=> Will be avoided with the DO preference "Preserve the timestamps of copied files".

Move from C: => C:

C:\Test>del ..\Test2\TestDir

C:\Test>dir ..\Test2
 Volume in drive C is Festplatte
 Volume Serial Number is 7044-29C0

 Directory of C:\Test2

2012-10-17  12:18    <DIR>          .
2012-10-17  12:18    <DIR>          ..
               0 File(s)              0 bytes
               2 Dir(s)  124.269.506.560 bytes free

C:\Test>move TestDir ..\Test2\TestDir
        1 file(s) moved.

C:\Test>dir ..\Test2
 Volume in drive C is Festplatte
 Volume Serial Number is 7044-29C0

 Directory of C:\Test2

2012-10-17  12:19    <DIR>          .
2012-10-17  12:19    <DIR>          ..
2012-10-17  12:08    <DIR>          TestDir
               0 File(s)              0 bytes
               3 Dir(s)  124.269.506.560 bytes free

=> Windows/DO only runs a "rename" for the "move" on the same drive. From the logical point it would have to update the timestamp. I see it more or less as a bug.

=> If Windows/DO would emulate the "move" correctly, a "copy" + "delete" would change the timestamp. And as a follow up DO would preserve the timestamp and all would be fine also.

Rename on C:

C:\Test>move ..\Test2\TestDir .

C:\Test>dir
 Volume in drive C is Festplatte
 Volume Serial Number is 7044-29C0

 Directory of C:\Test

2012-10-17  12:26    <DIR>          .
2012-10-17  12:26    <DIR>          ..
2012-10-17  12:08    <DIR>          TestDir
               0 File(s)              0 bytes
               3 Dir(s)  124.269.211.648 bytes free

C:\Test>rename TestDir TestDir2

C:\Test>dir
 Volume in drive C is Festplatte
 Volume Serial Number is 7044-29C0

 Directory of C:\Test

2012-10-17  12:27    <DIR>          .
2012-10-17  12:27    <DIR>          ..
2012-10-17  12:08    <DIR>          TestDir2
               0 File(s)              0 bytes
               3 Dir(s)  124.269.211.648 bytes free

=> Unchanged timestamp. OK

See next comment please.

How can it be anything other than the DFS?

a) It only happens when you move (via rename) a folder from one location on the DFS to another on the same DFS.

b) It happens whether you use Opus, Windows Explorer or a Command Prompt.

c) It does not happen when you do the same operation on something other than the DFS.

The DFS is bumping the timestamp of directories when they are moved (via rename). End of story.

It has nothing to do with Copy vs Rename, either. When you copy a directory, you create a brand new directory, which will (of course) have the current timestamp. Opus (if configured to) expects that and will then copy the timestamp over to the new directory afterwards.

Copying the timestamp should not be needed after a rename (and is not needed on anything but that DFS) so Opus doesn't do it.

The DFS is at fault, or at least not behaving the same as a normal drive. This has nothing to do with Opus and everything to do with the DFS.

Copy from C: => M:

C:\Test>dir
 Volume in drive C is Festplatte
 Volume Serial Number is 7044-29C0

 Directory of C:\Test

2012-10-17  12:27    <DIR>          .
2012-10-17  12:27    <DIR>          ..
2012-10-17  12:08    <DIR>          TestDir2
               0 File(s)              0 bytes
               3 Dir(s)  124.269.088.768 bytes free

C:\Test>dir M:\SECA\Test2
 Volume in drive M is DATA
 Volume Serial Number is FC29-8782

 Directory of M:\SECA\Test2

2012-10-17  13:07    <DIR>          .
2012-10-17  12:34    <DIR>          ..
               0 File(s)              0 bytes
               2 Dir(s)  1.207.691.968.512 bytes free

C:\Test>copy TestDir2 M:\SECA\Test2\TestDir2
TestDir2\Testfile.pdf
        1 file(s) copied.

C:\Test>dir M:\SECA\Test2
 Volume in drive M is DATA
 Volume Serial Number is FC29-8782

 Directory of M:\SECA\Test2

2012-10-17  13:08    <DIR>          .
2012-10-17  12:34    <DIR>          ..
2012-10-17  13:08             1.069 TestDir2
               1 File(s)          1.069 bytes
               2 Dir(s)  1.207.691.513.856 bytes free

=> Same as C: => C: and M: => M:
=> Normal copy => new timestamp.
=> Will be avoided with the DO preference "Preserve the timestamps of copied files".

Move from C: => M:

C:\Test>del M:\SECA\Test2\TestDir2

C:\Test>dir M:\SECA\Test2
 Volume in drive M is DATA
 Volume Serial Number is FC29-8782

 Directory of M:\SECA\Test2

2012-10-17  13:10    <DIR>          .
2012-10-17  12:34    <DIR>          ..
               0 File(s)              0 bytes
               2 Dir(s)  1.207.690.919.936 bytes free

C:\Test>move TestDir2 M:\SECA\Test2\TestDir2
Access is denied.
        0 file(s) moved.

=> DOS command "move" does not work like in Explorer or DO.

Finally:

To avoid this problem - to change the timestamp on a "move" - DO must support it because DO uses the tricky Windows "rename" which has the "side effect" not changing the timestamp on a "move".

So it would be great if DO supports e.g. the following options in the preferences:

"Preserve the timestamps on file systems like DFS".

Sub-Option of "Preserve the timestamps of copied files" and only selectable if the parent option is selected.

If selected, DO should also preserve the timestamp after a "move" (not "rename" but could!) on a DFS itself.

See my reply above, and please ignore anything to do with Copy, and anything to do with Moving between devices (Copy-then-Delete), as both are irrelevant and just confusing the matter.

The important thing is what happens when a folder is Moved on the same device (i.e. Move via Rename). Your DFS is bumping the timestamp when that happens, and it shouldn't be.

Dear Leo,

I just see the whole comment with examples from M: => M: is missing in this thread. And you didn't wait for my next comment. :wink:

Is it possible to support a "move" and preserving the timestamp (rename works in this case) on a DFS itself? Maybe in the "Advanced" section. I think I'm not allone.

Thanks a lot (as always)

Robert

Just reading in a magazine that Windows 8 will suport "Storage Spaces" where you can connect multiple phyiscal storage devices to one logical device (like a DFS).

I don't have Windows 8 yet but how does copy/move/rename work with "logical devices" regarding the timestamps?