/** * Called after the stream has been closed. */ @Override protected void onClose() throws IOException { getAbstractFileSystem().putChannel(channel); } }
/** * Called after this stream is closed. */ @Override protected void onClose() throws IOException { getAbstractFileSystem().putChannel(channel); } }
/** * Called after this stream is closed. */ @Override protected void onClose() throws IOException { getAbstractFileSystem().putChannel(channel); } }
/** * Called after the stream has been closed. */ @Override protected void onClose() throws IOException { getAbstractFileSystem().putChannel(channel); } }
/** * Called after this stream is closed. */ @Override protected void onClose() throws IOException { getAbstractFileSystem().putChannel(channel); } }
/** * Called after this stream is closed. */ @Override protected void onClose() throws IOException { getAbstractFileSystem().putChannel(channel); } }
/** * Called after the stream has been closed. */ @Override protected void onClose() throws IOException { getAbstractFileSystem().putChannel(channel); } }
/** * Called after the stream has been closed. */ @Override protected void onClose() throws IOException { getAbstractFileSystem().putChannel(channel); } }
private void flushStat() throws IOException, SftpException { final ChannelSftp channel = getAbstractFileSystem().getChannel(); try { channel.setStat(relPath, attrs); } finally { getAbstractFileSystem().putChannel(channel); } }
/** * Creates this file as a folder. */ @Override protected void doCreateFolder() throws Exception { final ChannelSftp channel = getAbstractFileSystem().getChannel(); try { channel.mkdir(relPath); } finally { getAbstractFileSystem().putChannel(channel); } }
/** * Creates this file as a folder. */ @Override protected void doCreateFolder() throws Exception { final ChannelSftp channel = getAbstractFileSystem().getChannel(); try { channel.mkdir(relPath); } finally { getAbstractFileSystem().putChannel(channel); } }
private void flushStat() throws IOException, SftpException { final ChannelSftp channel = getAbstractFileSystem().getChannel(); try { channel.setStat(relPath, attrs); } finally { getAbstractFileSystem().putChannel(channel); } }
private void flushStat() throws IOException, SftpException { final ChannelSftp channel = getAbstractFileSystem().getChannel(); try { channel.setStat(relPath, attrs); } finally { getAbstractFileSystem().putChannel(channel); } }
private void flushStat() throws IOException, SftpException { final ChannelSftp channel = getAbstractFileSystem().getChannel(); try { channel.setStat(relPath, attrs); } finally { getAbstractFileSystem().putChannel(channel); } }
/** * Creates this file as a folder. */ @Override protected void doCreateFolder() throws Exception { final ChannelSftp channel = getAbstractFileSystem().getChannel(); try { channel.mkdir(relPath); } finally { getAbstractFileSystem().putChannel(channel); } }
@Override protected String doGetCurrentDir() throws Exception { final ChannelSftp channel = getAbstractFileSystem().getChannel(); try { return channel.pwd(); } finally { getAbstractFileSystem().putChannel(channel); } }
/** * Rename the file. */ @Override protected void doRename(final FileObject newFile) throws Exception { final ChannelSftp channel = getAbstractFileSystem().getChannel(); try { final SftpFileObject newSftpFileObject = (SftpFileObject) FileObjectUtils.getAbstractFileObject(newFile); channel.rename(relPath, newSftpFileObject.relPath); } finally { getAbstractFileSystem().putChannel(channel); } }
/** * Rename the file. */ @Override protected void doRename(final FileObject newFile) throws Exception { final ChannelSftp channel = getAbstractFileSystem().getChannel(); try { final SftpFileObject newSftpFileObject = (SftpFileObject) FileObjectUtils.getAbstractFileObject(newFile); channel.rename(relPath, newSftpFileObject.relPath); } finally { getAbstractFileSystem().putChannel(channel); } }
/** * Rename the file. */ @Override protected void doRename(final FileObject newFile) throws Exception { final ChannelSftp channel = getAbstractFileSystem().getChannel(); try { final SftpFileObject newSftpFileObject = (SftpFileObject) FileObjectUtils.getAbstractFileObject(newFile); channel.rename(relPath, newSftpFileObject.relPath); } finally { getAbstractFileSystem().putChannel(channel); } }
/** * Deletes the file. */ @Override protected void doDelete() throws Exception { final ChannelSftp channel = getAbstractFileSystem().getChannel(); try { if (isFile()) { channel.rm(relPath); } else { channel.rmdir(relPath); } } finally { getAbstractFileSystem().putChannel(channel); } }