public interface RemoteDirectory extends RemoteDirectoryEntry
RemoteFile
Modifier and Type | Method and Description |
---|---|
Collection<RemoteDirectoryEntry> |
getContents() |
RemoteFile |
makeEmptyFile(String name)
Creates an empty file in this directory.
|
RemoteDirectory |
makeSubdirectory(String name)
Creates a sub-directory of this directory.
|
destroy, getContainingDirectory, getModificationDate, getName
@Nonnull Collection<RemoteDirectoryEntry> getContents() throws RemoteException, IOException
RemoteException
- If anything goes wrong with the communication.IOException
- If anything goes wrong with listing the directory.@Nonnull RemoteDirectory makeSubdirectory(@Nonnull String name) throws RemoteException, IOException
name
- The name of the sub-directory.RemoteException
- If anything goes wrong with the communication.IOException
- If things go wrong with creating the subdirectory.@Nonnull RemoteFile makeEmptyFile(@Nonnull String name) throws RemoteException, IOException
name
- The name of the file to create.RemoteException
- If anything goes wrong with the communication.IOException
- If anything goes wrong with creating the file.Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.