About MTP paths in scripting

Whenever you get a path originating from MTP, regardless of how it's passed, it contains some codes that look like internal IDs or something similar. Something like:

mtp://[redacted]/?s10001?|Almacenamiento interno compartido/?oA?|Download/?o30?|test.jpeg

Is that intentional? Could those gibberish change at any time, or are they consistent?

FWIW, you get that from the item object or a path object.

DisplayName() will clean it up for you :slight_smile: