public class IVFSExplorer extends IUnknown
VFSType
.
An instance of this is returned byIAppliance.createVFSExplorer(String)
.
Interface ID: {FB220201-2FD3-47E2-A5DC-2C2431D833CC}Constructor and Description |
---|
IVFSExplorer(java.lang.String wrapped,
org.virtualbox_6_0.ObjectRefManager objMgr,
org.virtualbox_6_0.jaxws.VboxPortType port) |
Modifier and Type | Method and Description |
---|---|
IProgress |
cd(java.lang.String dir)
Change the current directory level.
|
IProgress |
cdUp()
Go one directory upwards from the current directory level.
|
void |
entryList(Holder<java.util.List<java.lang.String>> names,
Holder<java.util.List<java.lang.Long>> types,
Holder<java.util.List<java.lang.Long>> sizes,
Holder<java.util.List<java.lang.Long>> modes)
Returns a list of files/directories after a call to
update() . |
java.util.List<java.lang.String> |
exists(java.util.List<java.lang.String> names)
Checks if the given file list exists in the current directory
level.
|
java.lang.String |
getPath()
Returns the current path in the virtual file system.
|
VFSType |
getType()
Returns the file system type which is currently in use.
|
static IVFSExplorer |
queryInterface(IUnknown obj) |
IProgress |
remove(java.util.List<java.lang.String> names)
Deletes the given files in the current directory level.
|
IProgress |
update()
Updates the internal list of files/directories from the
current directory level.
|
getObjMgr, getRemoteWSPort, getWrapped, releaseRemote
public IVFSExplorer(java.lang.String wrapped, org.virtualbox_6_0.ObjectRefManager objMgr, org.virtualbox_6_0.jaxws.VboxPortType port)
public java.lang.String getPath()
public VFSType getType()
public static IVFSExplorer queryInterface(IUnknown obj)
public IProgress update()
entryList(Holder,Holder,Holder,Holder)
to get the full list
after a call to this method.public IProgress cd(java.lang.String dir)
dir
- The name of the directory to go in.public IProgress cdUp()
public void entryList(Holder<java.util.List<java.lang.String>> names, Holder<java.util.List<java.lang.Long>> types, Holder<java.util.List<java.lang.Long>> sizes, Holder<java.util.List<java.lang.Long>> modes)
update()
. The user is responsible for keeping this internal
list up do date.names
- The list of names for the entries.types
- The list of types for the entries.FsObjType
sizes
- The list of sizes (in bytes) for the entries.modes
- The list of file modes (in octal form) for the entries.public java.util.List<java.lang.String> exists(java.util.List<java.lang.String> names)
names
- The names to check.public IProgress remove(java.util.List<java.lang.String> names)
names
- The names to remove.