-
Notifications
You must be signed in to change notification settings - Fork 185
Open
Description
Hi @vidstige,
First off - thanks for this library! It's a huge improvement for me over calling 'adb' from my app in bash scripts.
I wanted to write a simple file explorer with this library and had a couple of questions:
- Is there a way to detect a folder link / alias? For example
/sdcardon my device is a symbolic link to another folder. But,RemoteFile.isDirectory()returns false.
I imagine there's a way to detect this using the mode but I haven't figured out exactly just yet. Any thoughts?
lrw-r--r-- 1 root root 21 2008-12-31 10:00 sdcard -> /storage/self/primary
public boolean isDirectory() {
return (mode & (1 << 14)) == (1 << 14);
}
- Is there a way to detect if a folder is read-only and can't be listed? Or, alternatively if I try to view a folder that doesn't exist I just get back 0 results -- same as an empty folder. I'm looking for some way to know that this isn't a valid folder or isn't one that the user has permission to view (
JadbDevice.list())
Metadata
Metadata
Assignees
Labels
No labels