FuseUtil
public
class
FuseUtil
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.FuseUtil |
A helper class for FUSE operations.
Summary
Public constructors | |
---|---|
FuseUtil()
|
Public methods | |
---|---|
boolean
|
canMountZip()
Returns whether zip mounting is supported. |
void
|
mountZip(File zipFile, File mountDir)
Mount a zip file as a file system in read-only mode. |
void
|
unmountZip(File mountDir)
Unmount a mounted zip file. |
Public constructors
FuseUtil
public FuseUtil ()
Public methods
canMountZip
public boolean canMountZip ()
Returns whether zip mounting is supported.
Zip mounting is only supported when fuse-zip is available.
Returns | |
---|---|
boolean |
true if zip mounting is supported. Otherwise false. |
mountZip
public void mountZip (File zipFile, File mountDir)
Mount a zip file as a file system in read-only mode.
Parameters | |
---|---|
zipFile |
File : a zip file to mount. |
mountDir |
File : a mount point. |
unmountZip
public void unmountZip (File mountDir)
Unmount a mounted zip file.
Parameters | |
---|---|
mountDir |
File : a mount point. |