← Back to team overview

desktop-packages team mailing list archive

[Bug 1175947] Re: gvfs-copy --preserve doesn't work with MTP devices

 

I'm sorry to read that the fix does not yet work in all cases.

Following on from my previous post:

I am using Ubuntu 15.10 beta2 followed by recent apt-get dist upgrade on +-30 September 2015.
The gvfs package updated to:   gvfs_1.24.2-0ubuntu1_amd64.deb

I have tested the following three android devices:

Samsung Galaxy Note 4 SM-N910F (running Android 5.1) 
Samsung Galaxy S4 i9500 (running Android 5.0.1) 
Samsung Galaxy Note 10.1 2014 SM-P601 (running Android 4.4.2)

I performed the following tests via usb:

(1) Copying files from phone to Ubuntu laptop (RESULT: timestamp preserved)
(2) Copying files from Ubuntu laptop to phone (RESULT: *** timestamp NOT preserved ***) 

(3) Copying files from phone to Windows 7 (RESULT: timestamp preserved)
(4) Copying files from Windows 7 to phone (RESULT: timestamp preserved) 

All three android devices behave in the same way.

It is weird that timestamps are properly preserved in both directions for Windows 7,
yet timestamps are only preserved in one direction for Ubuntu (with gvfs 1.24.2).

The previous post suggested that there are problems relating to lack of
support from Google android developers  (and that is why it is difficult
for Linux developers to fix).

Why then does it work properly for Windows if it is an Android problem?

Clearly the problem is only partially solved for Ubuntu.

It is still a serious problem if transferring files from Ubuntu to the phone destroys timestamps.
Please, can someone fix this problem or contact someone who can!  (for the sake of Linux!!!)

(But I am still delighted that I can now move my photos & videos  from
my phone to my laptop without timestamp corruption.  The problem was
more serious for videos as it appears that no date information is stored
inside the mp4 file; for jpg images, the date is stored inside the
file).

-- 
You received this bug notification because you are a member of Desktop
Packages, which is subscribed to gvfs in Ubuntu.
https://bugs.launchpad.net/bugs/1175947

Title:
  gvfs-copy --preserve doesn't work with MTP devices

Status in gvfs:
  Fix Released
Status in gvfs package in Ubuntu:
  Fix Released
Status in gvfs source package in Vivid:
  New

Bug description:
  * Impact
  When using gvfs-copy --preserve from a MTP device to local, the timestamp is not preserved.

  touch "localfile" --reference="MTP file" works ok.
  I assume --preserve is not working.

  * Test case
  copy files from a mtp device using the --preserve option and check timestamps

  * Regression potential
  verify files copied from mtp devices and their attributes

To manage notifications about this bug go to:
https://bugs.launchpad.net/gvfs/+bug/1175947/+subscriptions