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

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
pstein
Posts: 66
Joined: 11 Dec 2021 21:11

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

Post 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

admin
Site Admin
Posts: 63523
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post by admin »

121 bytes, really? AFAIK it's 4096 bytes.

pstein
Posts: 66
Joined: 11 Dec 2021 21:11

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

Post 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

admin
Site Admin
Posts: 63523
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post 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.

admin
Site Admin
Posts: 63523
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

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

Post 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?

Post Reply