| Method from com.sshtools.daemon.platform.NativeFileSystemProvider Detail: |
abstract public void closeFile(byte[] handle) throws IOException, InvalidHandleException
|
abstract public void createSymbolicLink(String link,
String target) throws UnsupportedFileOperationException, IOException, FileNotFoundException, PermissionDeniedException
|
abstract public boolean fileExists(String path) throws IOException
|
abstract public String getCanonicalPath(String path) throws IOException, FileNotFoundException
|
abstract public String getDefaultPath(String username) throws FileNotFoundException
|
abstract public FileAttributes getFileAttributes(String path) throws IOException, FileNotFoundException
|
abstract public FileAttributes getFileAttributes(byte[] handle) throws IOException, InvalidHandleException
|
public static NativeFileSystemProvider getInstance() {
try {
if (ConfigurationLoader.isConfigurationAvailable(
PlatformConfiguration.class)) {
Class cls = ConfigurationLoader.getExtensionClass(((PlatformConfiguration) ConfigurationLoader.getConfiguration(
PlatformConfiguration.class)).getNativeFileSystemProvider());
instance = (NativeFileSystemProvider) cls.newInstance();
}
} catch (Exception e) {
log.error("Failed to load native file system provider", e);
instance = null;
}
return instance;
}
|
abstract public String getRealPath(String path) throws FileNotFoundException
|
abstract public boolean makeDirectory(String path) throws IOException, FileNotFoundException, PermissionDeniedException
|
abstract public byte[] openDirectory(String path) throws IOException, FileNotFoundException, PermissionDeniedException
|
abstract public byte[] openFile(String path,
UnsignedInteger32 flags,
FileAttributes attrs) throws IOException, FileNotFoundException, PermissionDeniedException
|
abstract public SftpFile[] readDirectory(byte[] handle) throws EOFException, IOException, InvalidHandleException
|
abstract public byte[] readFile(byte[] handle,
UnsignedInteger64 offset,
UnsignedInteger32 len) throws EOFException, IOException, InvalidHandleException
|
abstract public SftpFile readSymbolicLink(String path) throws UnsupportedFileOperationException, IOException, FileNotFoundException, PermissionDeniedException
|
abstract public void removeDirectory(String path) throws IOException, FileNotFoundException, PermissionDeniedException
|
abstract public void removeFile(String path) throws IOException, FileNotFoundException, PermissionDeniedException
|
abstract public void renameFile(String oldpath,
String newpath) throws IOException, FileNotFoundException, PermissionDeniedException
|
abstract public void setFileAttributes(String path,
FileAttributes attrs) throws IOException, FileNotFoundException, PermissionDeniedException
|
abstract public void setFileAttributes(byte[] handle,
FileAttributes attrs) throws IOException, InvalidHandleException, PermissionDeniedException
|
abstract public void verifyPermissions(String username,
String path,
String permissions) throws IOException, FileNotFoundException, PermissionDeniedException
|
abstract public void writeFile(byte[] handle,
UnsignedInteger64 offset,
byte[] data,
int off,
int len) throws IOException, InvalidHandleException
|