-
- All Implemented Interfaces:
-
android.os.IInterface,com.topjohnwu.superuser.internal.IFileSystemService
public class IFileSystemService.Default implements IFileSystemService
Default implementation for IFileSystemService.
-
-
Method Summary
Modifier and Type Method Description IOResultgetCanonicalPath(String path)(err, String) booleanisDirectory(String path)booleanisFile(String path)booleanisHidden(String path)longlastModified(String path)longlength(String path)IOResultcreateNewFile(String path)(err, bool) booleandelete(String path)Array<String>list(String path)booleanmkdir(String path)booleanmkdirs(String path)booleanrenameTo(String path, String dest)booleansetLastModified(String path, long time)booleansetReadOnly(String path)booleansetWritable(String path, boolean writable, boolean ownerOnly)booleansetReadable(String path, boolean readable, boolean ownerOnly)booleansetExecutable(String path, boolean executable, boolean ownerOnly)booleancheckAccess(String path, int access)longgetTotalSpace(String path)longgetFreeSpace(String path)longgetUsableSpace(String path)intgetMode(String path)IOResultcreateLink(String link, String target, boolean soft)(err, bool) voidregister(IBinder client)IOResultopenChannel(String path, int mode, String fifo)(err, int) IOResultopenReadStream(String path, ParcelFileDescriptor fd)(err) IOResultopenWriteStream(String path, ParcelFileDescriptor fd, boolean append)(err) voidclose(int handle)IOResultpread(int handle, int len, long offset)(err, int) IOResultpwrite(int handle, int len, long offset)(err) IOResultlseek(int handle, long offset, int whence)(err, long) IOResultsize(int handle)(err, long) IOResultftruncate(int handle, long length)(err) IOResultsync(int handle, boolean metadata)(err) IBinderasBinder()-
-
Method Detail
-
getCanonicalPath
IOResult getCanonicalPath(String path)
(err, String)
-
isDirectory
boolean isDirectory(String path)
-
lastModified
long lastModified(String path)
-
createNewFile
IOResult createNewFile(String path)
(err, bool)
-
setLastModified
boolean setLastModified(String path, long time)
-
setReadOnly
boolean setReadOnly(String path)
-
setWritable
boolean setWritable(String path, boolean writable, boolean ownerOnly)
-
setReadable
boolean setReadable(String path, boolean readable, boolean ownerOnly)
-
setExecutable
boolean setExecutable(String path, boolean executable, boolean ownerOnly)
-
checkAccess
boolean checkAccess(String path, int access)
-
getTotalSpace
long getTotalSpace(String path)
-
getFreeSpace
long getFreeSpace(String path)
-
getUsableSpace
long getUsableSpace(String path)
-
createLink
IOResult createLink(String link, String target, boolean soft)
(err, bool)
-
openChannel
IOResult openChannel(String path, int mode, String fifo)
(err, int)
-
openReadStream
IOResult openReadStream(String path, ParcelFileDescriptor fd)
(err)
-
openWriteStream
IOResult openWriteStream(String path, ParcelFileDescriptor fd, boolean append)
(err)
-
close
void close(int handle)
-
pread
IOResult pread(int handle, int len, long offset)
(err, int)
-
pwrite
IOResult pwrite(int handle, int len, long offset)
(err)
-
lseek
IOResult lseek(int handle, long offset, int whence)
(err, long)
-
size
IOResult size(int handle)
(err, long)
-
ftruncate
IOResult ftruncate(int handle, long length)
(err)
-
sync
IOResult sync(int handle, boolean metadata)
(err)
-
-
-
-