Class FileTransferService

    • Constructor Detail

      • FileTransferService

        public FileTransferService()
    • Method Detail

      • renameFile

        public IFuture<java.lang.String> renameFile​(java.lang.String path,
                                                    java.lang.String name)
        Rename a file.
        Specified by:
        renameFile in interface IFileTransferService
        Parameters:
        path - The target path.
        name - The name.
        Returns:
        True, if rename was successful.
      • deleteFile

        public IFuture<java.lang.Void> deleteFile​(java.lang.String path)
        Delete a file.
        Specified by:
        deleteFile in interface IFileTransferService
        Parameters:
        path - The target path.
        Returns:
        True, if delete was successful.
      • openFile

        public IFuture<java.lang.Void> openFile​(java.lang.String path)
        Execute a file.
        Specified by:
        openFile in interface IFileTransferService
        Parameters:
        path - The filename to execute.
      • listDirectory

        public IFuture<FileData[]> listDirectory​(java.lang.String dir)
        List the contents of a directory.
        Specified by:
        listDirectory in interface IFileTransferService
        Parameters:
        dir - The directory, null for current directory.
        Returns:
        The contained files.
      • main

        public static void main​(java.lang.String[] args)