Page 1 of 1

Copy files with long path+name to Android device crashes; Meaningful popup + Auto-shorten?

Posted: 18 Feb 2025 08:20
by pstein
Occasionally I connect my Win10 computer via USB cable with my Android 14 Smartphone/Tablet and copy some files with XYplorer from Windows to Android.

This works in general. But sometimes the copy operation fails without any helpful explanation.
Further investigations showed that there is a path+filename limit on Android around 121 bytes (not chars).

It would help if XYplorer would show are corresponding meaningful error explanation like

"Path+filename length (=.....) for target Android device is longer than limit"

....and offer an auto-shorten of the filename by cutting the necessary last chars from the end of filename (but not file extension).

Can this feature be added be introduced in the next XYplorer release?
Thank you

Re: Copy files with long path+name to Android device crashes; Meaningful popup + Auto-shorten?

Posted: 18 Feb 2025 08:40
by admin
121 bytes, really? AFAIK it's 4096 bytes.

Re: Copy files with long path+name to Android device crashes; Meaningful popup + Auto-shorten?

Posted: 18 Feb 2025 11:38
by pstein
admin wrote: 18 Feb 2025 08:40 121 bytes, really? AFAIK it's 4096 bytes.
https://stackoverflow.com/questions/132 ... in-android

At least it works when I manually shorten the filename

So its clearly a length problem

Re: Copy files with long path+name to Android device crashes; Meaningful popup + Auto-shorten?

Posted: 18 Feb 2025 11:44
by admin
Okay, it's not path+name but the max component length in characters that might be around 121 (depending on the actual characters). I'll check that.

Re: Copy files with long path+name to Android device crashes; Meaningful popup + Auto-shorten?

Posted: 18 Feb 2025 14:58
by admin
Test results: I can copy items with up to 259 characters (path+name) to Android. If it's longer I get an error message ("Path too long."). So, where's the problem?