org.virtualbox_6_0
Class IVFSExplorer

java.lang.Object
  extended by org.virtualbox_6_0.IUnknown
      extended by org.virtualbox_6_0.IVFSExplorer

public class IVFSExplorer
extends IUnknown

The VFSExplorer interface unifies access to different file system types. This includes local file systems as well remote file systems like S3. For a list of supported types seeVFSType. An instance of this is returned byIAppliance.createVFSExplorer(String). Interface ID: {FB220201-2FD3-47E2-A5DC-2C2431D833CC}


Field Summary
 
Fields inherited from class org.virtualbox_6_0.IUnknown
obj, objMgr, port
 
Constructor Summary
IVFSExplorer(java.lang.String wrapped, org.virtualbox_6_0.ObjectRefManager objMgr, org.virtualbox_6_0.jaxws.VboxPortType port)
           
 
Method Summary
 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 toupdate().
 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.
 
Methods inherited from class org.virtualbox_6_0.IUnknown
getObjMgr, getRemoteWSPort, getWrapped, releaseRemote
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

IVFSExplorer

public IVFSExplorer(java.lang.String wrapped,
                    org.virtualbox_6_0.ObjectRefManager objMgr,
                    org.virtualbox_6_0.jaxws.VboxPortType port)
Method Detail

getPath

public java.lang.String getPath()
Returns the current path in the virtual file system.

Returns:
String

getType

public VFSType getType()
Returns the file system type which is currently in use.

Returns:
org.virtualbox_6_0.VFSType

queryInterface

public static IVFSExplorer queryInterface(IUnknown obj)

update

public IProgress update()
Updates the internal list of files/directories from the current directory level. UseentryList(Holder,Holder,Holder,Holder)to get the full list after a call to this method.

Returns:
Progress object to track the operation completion.

cd

public IProgress cd(java.lang.String dir)
Change the current directory level.

Parameters:
dir - The name of the directory to go in.
Returns:
Progress object to track the operation completion.

cdUp

public IProgress cdUp()
Go one directory upwards from the current directory level.

Returns:
Progress object to track the operation completion.

entryList

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)
Returns a list of files/directories after a call toupdate(). The user is responsible for keeping this internal list up do date.

Parameters:
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.

exists

public 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.

Parameters:
names - The names to check.
Returns:
The names which exist.

remove

public IProgress remove(java.util.List<java.lang.String> names)
Deletes the given files in the current directory level.

Parameters:
names - The names to remove.
Returns:
Progress object to track the operation completion.