mytyft / phoshare

Automatically exported from code.google.com/p/phoshare
Other
0 stars 0 forks source link

Photoshare export photo unchanged on FAT32 USB DISK #13

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.RUN phoshare and set export folder on a folder on USB FAT32 disk
2.check "overwrite changed pictures"
3.press export

What is the expected output? What do you see instead?
Only photo changed are updated. Instead same photos unchanged are considered 
changed and updated on export directory

What version of the product are you using? On what operating system?
version 1.3.5 on MAc osx 10.6.5

Please provide any additional information below.
it seems a problem of shutil.copy2 function, mtime of destination file is 
slightly different from source file:

>>> os.path.getmtime("/SRC/a.jpg");
1259958927.0
>>> shutil.copy2("/SRC/a.jpg","/Volumes/USB_FAT32/a.jpg");
>>> os.path.getmtime("/Volumes/USB_FAT32/a.jpg");
1259958926.0

Can you compare mtimes in a lazy mode (eg: rounded on 10s) ?

Original issue reported on code.google.com by GigaCl...@gmail.com on 11 Dec 2010 at 10:14

GoogleCodeExporter commented 8 years ago
That sounds reasonable. I'll add that to the next update.

Original comment by tsporkert on 11 Dec 2010 at 5:29

GoogleCodeExporter commented 8 years ago
Thanks very much.

Original comment by GigaCl...@gmail.com on 11 Dec 2010 at 5:56

GoogleCodeExporter commented 8 years ago
Phoshare 1.4 now allows for up to 3 seconds of drift in the file stamps.

Original comment by tsporkert on 4 Jan 2011 at 7:19