Page 1 of 1

WiFi plugin and WebDAV: Can it copy the modification timestamp?

Posted: 2023-04-30, 22:02 UTC
by ienne
Hello.

I have been using for some time the WiFi plugin and connected to my PC with the QR Code. I find it extremely handy.

I just noticed something, though: the timestamp of a file copied *to* Android is the time when the copy was made and not the timestamp of the file being copied. The opposite is not true and is what perhaps most people would expect: the timestamp of the copy to the PC is the same as the timestamp of the source file on Android. I would like all copies to carry their timestamp.

I understand this is a WebDAV limitation. Is this true? If it is, is there a workaround? Or is there a similar plugin (maybe with a similarly cool connection QR code) for something like an SFTP server?

Thanks!

p.

Re: WiFi plugin and WebDAV: Can it copy the modification timestamp?

Posted: 2023-05-01, 08:16 UTC
by ghisler(Author)
It is indeed a WebDAV limitation. However, my WiFi plugin does support copying of the timestamp with the file on upload (via non-standard method), but it depends on the WebDAV client whether it works or not. Most 3rd party WebDAV clients simply do not send the file timestamp with the file.

The following clients work:
1. The WiFi plugin connection to another WiFi plugin on another Android device
2. The WebDAV plugin for Windows (Total Commander for Windows)
3. Microsoft's function "Map network drive". Just enter the http URL instead of \\server\share. I recommend that you define a user name and password on the WiFi plugin for better security

Re: WiFi plugin and WebDAV: Can it copy the modification timestamp?

Posted: 2023-05-01, 17:02 UTC
by ienne
Christian, thanks.

But what am I doing wrong then? I am using "2", that is TC (x64) 10.52 on Windows. To be clear, on Android I select the directory, then "send to", and "send via WiFi". I get the QR code. On the PC I click on Network Neighbourhood, then WebDAV, then _QR-Code, and scan the QR code. It connects perfectly fine but if I upload a file to Android, it appears with the creation date and not the original one. The opposite is fine.

I just checked and the WebDAV plugin is the latest one (in fact, I updated it, for I still had 3.0) and I suppose the version on Android is also the latest (autoupdate).

Is there some config? I did look for that but could not find anything.

Re: WiFi plugin and WebDAV: Can it copy the modification timestamp?

Posted: 2023-05-02, 13:58 UTC
by ghisler(Author)
Which Android version do you use? It works in some but not in all. Also some locations which can only be reached via virtual folders don't allow to change the timestamp (path starts with \\\_ instead of something like \storage).

Re: WiFi plugin and WebDAV: Can it copy the modification timestamp?

Posted: 2023-05-02, 15:12 UTC
by ienne
It is Android 13 on a Samsung Galaxy S20 Ultra 5G. The path is a folder somewhere inside /storage/3431-3834/... It is an SD card.

Re: WiFi plugin and WebDAV: Can it copy the modification timestamp?

Posted: 2023-05-02, 15:51 UTC
by ghisler(Author)
That should work - I will test it in the emulator.

Re: WiFi plugin and WebDAV: Can it copy the modification timestamp?

Posted: 2023-05-03, 12:53 UTC
by ienne
Thanks! I hope I am not doing something stupid.... Please, just let me know if I can do anything to help!

Re: WiFi plugin and WebDAV: Can it copy the modification timestamp?

Posted: 2023-06-03, 07:30 UTC
by ienne
Any news? Can I do anything to help?

Re: WiFi plugin and WebDAV: Can it copy the modification timestamp?

Posted: 2023-06-04, 08:36 UTC
by ghisler(Author)
The plugin needs some major overhaul for Android 13. Unfortunately that also means that it will no longer work without help from Total Commander, because Google doesn't want to grant file system access to mere web servers, only to file managers and backup tools (and a few others).

Re: WiFi plugin and WebDAV: Can it copy the modification timestamp?

Posted: 2023-06-04, 14:00 UTC
by ienne
I see, too bad, thanks! I hope you will manage, eventually! (And if I can do anything to help, just let me know!)