congrats Icon
New! Announcing our next generation AI code completions
Read here
Tabnine Logo
SftpFileObject.isFile
Code IndexAdd Tabnine to your IDE (free)

How to use
isFile
method
in
org.apache.commons.vfs2.provider.sftp.SftpFileObject

Best Java code snippets using org.apache.commons.vfs2.provider.sftp.SftpFileObject.isFile (Showing top 8 results out of 315)

origin: org.apache.commons/commons-vfs2

/**
 * 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);
  }
}
origin: com.github.abashev/commons-vfs2

/**
 * 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);
  }
}
origin: apache/commons-vfs

/**
 * 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);
  }
}
origin: apache/commons-vfs

protected FileObject[] doListChildrenResolved() throws Exception {
  if (this.isFile()) {
    return null;
origin: org.jetbrains.intellij.deps/commons-vfs2

/**
 * 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);
  }
}
origin: org.apache.commons/commons-vfs2

protected FileObject[] doListChildrenResolved() throws Exception {
  if (this.isFile()) {
    return null;
origin: com.github.abashev/commons-vfs2

protected FileObject[] doListChildrenResolved() throws Exception {
  if (this.isFile()) {
    return null;
origin: org.jetbrains.intellij.deps/commons-vfs2

if (this.isFile())
org.apache.commons.vfs2.provider.sftpSftpFileObjectisFile

Popular methods of SftpFileObject

  • getContent
  • getPermissions
    Returns the POSIX type permissions of the file.
  • <init>
  • flushStat
  • getAbstractFileSystem
  • getFileSystem
  • getInputStream
    Creates an input stream to read the file content from. The input stream is starting at the given pos
  • getName
  • getType
  • setStat
    Set attrs from listChildrenResolved
  • statSelf
    Fetches file attributes from server.
  • doIsReadable
  • statSelf,
  • doIsReadable,
  • doIsWriteable,
  • getLinkDestination

Popular in Java

  • Running tasks concurrently on multiple threads
  • notifyDataSetChanged (ArrayAdapter)
  • runOnUiThread (Activity)
  • onRequestPermissionsResult (Fragment)
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • Collections (java.util)
    This class consists exclusively of static methods that operate on or return collections. It contains
  • ResourceBundle (java.util)
    ResourceBundle is an abstract class which is the superclass of classes which provide Locale-specifi
  • Handler (java.util.logging)
    A Handler object accepts a logging request and exports the desired messages to a target, for example
  • Base64 (org.apache.commons.codec.binary)
    Provides Base64 encoding and decoding as defined by RFC 2045.This class implements section 6.8. Base
  • StringUtils (org.apache.commons.lang)
    Operations on java.lang.String that arenull safe. * IsEmpty/IsBlank - checks if a String contains
  • Top plugins for WebStorm
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyStudentsTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now