<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
</head>
<body>
Hi Sean,<br>
<br>
Just to be sure we're talking about the same thing, there are two
ways of copying files using KDE Connect.<br>
<br>
You can share a file, usually by right-clicking it on the desktop
implementation or by using Android's share dialogue.<br>
<br>
Alternatively, you can mount the phone's filesystem using SSHFS and
browse it on your computer and copy files using your file browser.
(I think this is what you're talking about).<br>
<br>
In the case of the share plugin, some parts of the file metadata
(maybe only modified time) are copied over with the file and
explicitly set on the resulting file. See <a moz-do-not-send="true"
href="https://invent.kde.org/network/kdeconnect-kde/-/merge_requests/52">!52</a>
in kdeconnect-kde.<br>
<br>
For the SSHFS browser, the details would be up to the specific SSHFS
implementation. It sounds like you've found some which behave
differently.<br>
<br>
Note that the file metadata is highly dependent on the filesystem.
See <a moz-do-not-send="true"
href="https://unix.stackexchange.com/a/40052">this Stack Overflow
post</a> for a brief discussion. It may be that your old and new
phones use a different filesystem, which might be causing this
metadata to behave strangely.<br>
<br>
Thanks,<br>
Simon<br>
<br>
<div class="moz-cite-prefix">On 12/27/21 22:18, Sean Warner wrote:<br>
</div>
<blockquote type="cite"
cite="mid:bc7e70895bf05794ba3bade2fc6d56a8c40b7f42.camel@gmail.com">
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
<div>Hello,</div>
<div><br>
</div>
<div>I just got the KDE Connect app on my Pixel Android Phone. I
set up a few folders on my phone to share and paired the phone
with the KDE Connect app in my Manjaro OS.</div>
<div><br>
</div>
<div>Now I can view the contents of some folders in the phone in
Dolphin file explorer then drag and drop files in to my Manjaro
home folder.</div>
<div><br>
</div>
<div>My question:</div>
<div>When I drag and drop files only the modified and accessed
timestamps are preserved. I figure there is no way to preserve
the created timestamp because on the target file system a new
file is created when I copy one over from the phone... yes?</div>
<div>But here is where I'm confused. </div>
<div><br>
</div>
<div>If I just connect the phone to the computer running Manjaro I
enable File Transfers in the phone USB Preferences I can also
drag files off the phone to the Manjaro home folder... however,
in this case only the modified timestamps are preserved.</div>
<div><br>
</div>
<div>I also tested by installing SimpleSSHD on the phone and using
rsync and scp to copy files off... in the case of rsync only the
modified timestamp is preserved. In the case of SCP, the
modified TS is preserved and confusingly the accessed timestamp
that is copied over is not the same as what I see in the File
Properties of the file ON the phone but I have a feeling that
the accessed TS that is "copied" over is the datetime the file
was copied over from my old HTC phone to the new Pixel that I
only started using a few weeks ago.</div>
<div><br>
</div>
<div>KDE Connect preserves the modified and accessed timestamps
but the later is the "original" accessed timestamp that I see in
the file properties of the file ON the Pixel. Can someone
explain why/how KDE Connect preserves timestamps.. in particular
the accessed TS but also.. why does it not preserve the created
TS?</div>
<div><br>
</div>
<div>Thank you,</div>
<div><br>
</div>
<div>Sean</div>
<div><span></span></div>
</blockquote>
<br>
</body>
</html>