Move file to parent folder (input "..")

Support for Android version of Total Commander

Moderators: white, Hacker, petermad, Stefan2

Post Reply
BeckYang
Junior Member
Junior Member
Posts: 29
Joined: 2006-04-02, 10:33 UTC

Move file to parent folder (input "..")

Post by *BeckYang »

Steps to reproduce:
1. Select file and click "copy/move"
2. Input ".." in folder name
3. Click "move"
TC for Android will try to re-mount file system. If I click "yes", the file will move to root folder.

Please verify, thank you.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Relative paths aren't currently supported. Try setting the target in the other panel first. I will check whether I can support them.
Author of Total Commander
https://www.ghisler.com
BeckYang
Junior Member
Junior Member
Posts: 29
Joined: 2006-04-02, 10:33 UTC

Post by *BeckYang »

The java.io.File class offer methods getCanonical????() which can return absolute unique file path. It could resovle the ".." and other symbols.
For example: new File("/mnt/sdcard/bluetooth/misc", "..").getCanonicalPath()
will return "/mnt/sdcard/bluetooth"

But I'm not sure it also work on Android platform. This could be a possible solution.
Post Reply