EldoS | Feel safer!

Software components for data protection, secure storage and transfer

Getting the original modified date of a file

Also by EldoS: Solid File System
A virtual file system that offers a feature-rich storage for application documents and data with built-in compression and encryption.
Posted: 01/20/2014 06:39:04
by pnina (Standard support level)
Joined: 11/20/2013
Posts: 36

I am using the VDisk sample for c#.
When a file is copied from the computer (desktop) to the Virtual drive, it calls CbFsCreateFile and then CbFsWriteFile, and sets the vfile.LastWriteTime to now.

Is there a way to get the original "modified date" of the file, instead of setting it to now?
Posted: 01/20/2014 06:42:15
by Eugene Mayevski (EldoS Corp.)

That depends on the application that performs copying. It must explicitly set file attributes (modification time in your case).

Sincerely yours
Eugene Mayevski
Posted: 01/20/2014 06:49:21
by pnina (Standard support level)
Joined: 11/20/2013
Posts: 36

I am just dragging and dropping a file from the desktop (Windows) to VDisk.
I am asking how can I set the modified date in the VDisk to be the same as the file's, because right now it sets DateTime.Now, and I wasn't able to find how do I get this date using VDisk sample.
Posted: 01/20/2014 06:50:31
by Eugene Mayevski (EldoS Corp.)

Please re-read my answer attentively.

Sincerely yours
Eugene Mayevski



Topic viewed 847 times

Number of guests: 1, registered members: 0, in total hidden: 0


Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!