congrats Icon
New! Tabnine Pro 14-day free trial
Start a free trial
Tabnine Logo
FileWrapper.isDirectory
Code IndexAdd Tabnine to your IDE (free)

How to use
isDirectory
method
in
net.sourceforge.squirrel_sql.fw.util.FileWrapper

Best Java code snippets using net.sourceforge.squirrel_sql.fw.util.FileWrapper.isDirectory (Showing top 20 results out of 315)

origin: net.sf.squirrel-sql/squirrel-sql

private void verifyDirectory(FileWrapper fromDir, FileWrapper toDir) {
  if (!fromDir.isDirectory()) { throw new IllegalArgumentException("Expected fromDir("
    + fromDir.getAbsolutePath() + ") to be a directory."); }
  if (!toDir.isDirectory()) { throw new IllegalArgumentException("Expected toDir("
    + toDir.getAbsolutePath() + ") to be a directory."); }		
}

origin: realXuJiang/bigtable-sql

private void verifyDirectory(FileWrapper fromDir, FileWrapper toDir) {
  if (!fromDir.isDirectory()) { throw new IllegalArgumentException("Expected fromDir("
    + fromDir.getAbsolutePath() + ") to be a directory."); }
  if (!toDir.isDirectory()) { throw new IllegalArgumentException("Expected toDir("
    + toDir.getAbsolutePath() + ") to be a directory."); }		
}

origin: net.sf.squirrel-sql/squirrel-sql

/**
 * @see net.sourceforge.squirrel_sql.client.update.UpdateUtil#getSquirrelPluginsDir()
 */
public FileWrapper getSquirrelPluginsDir()
{
  FileWrapper squirrelHomeDir = _appFileWrappers.getPluginsDirectory();
  if (!squirrelHomeDir.isDirectory())
  {
    s_log.error("SQuirreL Plugins Directory (" + squirrelHomeDir.getAbsolutePath()
      + " doesn't appear to be a directory");
  }
  return squirrelHomeDir;
}
origin: realXuJiang/bigtable-sql

/**
 * @see net.sourceforge.squirrel_sql.client.update.UpdateUtil#getSquirrelHomeDir()
 */
public FileWrapper getSquirrelHomeDir()
{
  FileWrapper squirrelHomeDir = _appFileWrappers.getSquirrelHomeDir();
  if (!squirrelHomeDir.isDirectory())
  {
    s_log.error("SQuirreL Home Directory (" + squirrelHomeDir.getAbsolutePath()
      + " doesn't appear to be a directory");
  }
  return squirrelHomeDir;
}
origin: realXuJiang/bigtable-sql

/**
 * @see net.sourceforge.squirrel_sql.client.update.UpdateUtil#getSquirrelPluginsDir()
 */
public FileWrapper getSquirrelPluginsDir()
{
  FileWrapper squirrelHomeDir = _appFileWrappers.getPluginsDirectory();
  if (!squirrelHomeDir.isDirectory())
  {
    s_log.error("SQuirreL Plugins Directory (" + squirrelHomeDir.getAbsolutePath()
      + " doesn't appear to be a directory");
  }
  return squirrelHomeDir;
}
origin: realXuJiang/bigtable-sql

/**
 * @see net.sourceforge.squirrel_sql.client.update.UpdateUtil#getSquirrelLibraryDir()
 */
public FileWrapper getSquirrelLibraryDir()
{
  FileWrapper squirrelLibDir = _appFileWrappers.getLibraryDirectory();
  if (!squirrelLibDir.isDirectory())
  {
    s_log.error("SQuirreL Library Directory (" + squirrelLibDir.getAbsolutePath()
      + " doesn't appear to be a directory");
  }
  return squirrelLibDir;
}
origin: net.sf.squirrel-sql/squirrel-sql

/**
 * @see net.sourceforge.squirrel_sql.client.update.UpdateUtil#getSquirrelHomeDir()
 */
public FileWrapper getSquirrelHomeDir()
{
  FileWrapper squirrelHomeDir = _appFileWrappers.getSquirrelHomeDir();
  if (!squirrelHomeDir.isDirectory())
  {
    s_log.error("SQuirreL Home Directory (" + squirrelHomeDir.getAbsolutePath()
      + " doesn't appear to be a directory");
  }
  return squirrelHomeDir;
}
origin: net.sf.squirrel-sql/squirrel-sql

/**
 * @see net.sourceforge.squirrel_sql.client.update.UpdateUtil#getSquirrelLibraryDir()
 */
public FileWrapper getSquirrelLibraryDir()
{
  FileWrapper squirrelLibDir = _appFileWrappers.getLibraryDirectory();
  if (!squirrelLibDir.isDirectory())
  {
    s_log.error("SQuirreL Library Directory (" + squirrelLibDir.getAbsolutePath()
      + " doesn't appear to be a directory");
  }
  return squirrelLibDir;
}
origin: net.sf.squirrel-sql/squirrel-sql

/**
 * @see net.sourceforge.squirrel_sql.client.update.UpdateUtil#copyDir(
 * net.sourceforge.squirrel_sql.fw.util.FileWrapper,
 *      java.lang.String, boolean, net.sourceforge.squirrel_sql.fw.util.FileWrapper)
 */
@Override
public void moveFiles(FileWrapper fromDir, String filePattern, boolean matchPattern, FileWrapper toDir)
  throws FileNotFoundException, IOException
{
  if (StringUtils.isEmpty(filePattern)) {
    throw new IllegalArgumentException("filePattern arg cannot be empty or null");
  }
  if (!fromDir.isDirectory()) { throw new IllegalArgumentException("Expected fromDir("
    + fromDir.getAbsolutePath() + ") to be a directory."); }
  if (!toDir.isDirectory()) { throw new IllegalArgumentException("Expected toDir("
    + toDir.getAbsolutePath() + ") to be a directory."); }
  List<FileWrapper> filesToMove = getFilterFileList(fromDir, filePattern, matchPattern);
  for (FileWrapper file : filesToMove) {
    copyFile(file, toDir);
    if (s_log.isDebugEnabled()) {
      s_log.debug("moveFiles: Attempting to delete file "+file.getAbsolutePath());
    }
    if (file.delete()) {
      s_log.error("moveFiles: Unable to delete file "+file.getAbsolutePath());
    }
    
  }
}

origin: realXuJiang/bigtable-sql

/**
 * @see net.sourceforge.squirrel_sql.client.update.UpdateUtil#copyDir(
 * net.sourceforge.squirrel_sql.fw.util.FileWrapper,
 *      java.lang.String, boolean, net.sourceforge.squirrel_sql.fw.util.FileWrapper)
 */
@Override
public void moveFiles(FileWrapper fromDir, String filePattern, boolean matchPattern, FileWrapper toDir)
  throws FileNotFoundException, IOException
{
  if (StringUtils.isEmpty(filePattern)) {
    throw new IllegalArgumentException("filePattern arg cannot be empty or null");
  }
  if (!fromDir.isDirectory()) { throw new IllegalArgumentException("Expected fromDir("
    + fromDir.getAbsolutePath() + ") to be a directory."); }
  if (!toDir.isDirectory()) { throw new IllegalArgumentException("Expected toDir("
    + toDir.getAbsolutePath() + ") to be a directory."); }
  List<FileWrapper> filesToMove = getFilterFileList(fromDir, filePattern, matchPattern);
  for (FileWrapper file : filesToMove) {
    copyFile(file, toDir);
    if (s_log.isDebugEnabled()) {
      s_log.debug("moveFiles: Attempting to delete file "+file.getAbsolutePath());
    }
    if (file.delete()) {
      s_log.error("moveFiles: Unable to delete file "+file.getAbsolutePath());
    }
    
  }
}

origin: net.sf.squirrel-sql/squirrel-sql

if (file.isDirectory())
origin: realXuJiang/bigtable-sql

if (!file.isDirectory())
origin: net.sf.squirrel-sql/squirrel-sql

/**
 * Loads the channel xml bean from the file system.throw new IOException();
 * 
 * @param path
 *           the directory to find release.xml in
 * @return the ChannelXmlBean that represents the specified path.
 */
public ChannelXmlBean loadUpdateFromFileSystem(final String path)
{
  ChannelXmlBean result = null;
  try
  {
    FileWrapper f = _fileWrapperFactory.create(path);
    if (!f.isDirectory())
    {
      s_log.error("FileSystem path (" + path + ") is not a directory.");
    }
    else
    {
      f = _fileWrapperFactory.create(f, RELEASE_XML_FILENAME);
      result = _serializer.readChannelBean(f);
    }
  }
  catch (IOException e)
  {
    s_log.error("Unexpected exception while attempting " + "load updates from filesystem path (" + path
      + "): " + e.getMessage(), e);
  }
  return result;
}
origin: realXuJiang/bigtable-sql

if (file.isDirectory())
origin: net.sf.squirrel-sql/squirrel-sql

if (!file.isDirectory())
origin: realXuJiang/bigtable-sql

/**
 * Loads the channel xml bean from the file system.throw new IOException();
 * 
 * @param path
 *           the directory to find release.xml in
 * @return the ChannelXmlBean that represents the specified path.
 */
public ChannelXmlBean loadUpdateFromFileSystem(final String path)
{
  ChannelXmlBean result = null;
  try
  {
    FileWrapper f = _fileWrapperFactory.create(path);
    if (!f.isDirectory())
    {
      s_log.error("FileSystem path (" + path + ") is not a directory.");
    }
    else
    {
      f = _fileWrapperFactory.create(f, RELEASE_XML_FILENAME);
      result = _serializer.readChannelBean(f);
    }
  }
  catch (IOException e)
  {
    s_log.error("Unexpected exception while attempting " + "load updates from filesystem path (" + path
      + "): " + e.getMessage(), e);
  }
  return result;
}
origin: realXuJiang/bigtable-sql

if (!result.isDirectory())
origin: net.sf.squirrel-sql/squirrel-sql

if (!result.isDirectory())
origin: realXuJiang/bigtable-sql

if (to.isDirectory())
origin: net.sf.squirrel-sql/squirrel-sql

if (to.isDirectory())
net.sourceforge.squirrel_sql.fw.utilFileWrapperisDirectory

Popular methods of FileWrapper

  • exists
  • getAbsolutePath
  • getPath
  • delete
  • getFileWriter
  • isFile
  • list
  • listFiles
  • mkdir
  • mkdirs
  • toURI
  • canRead
  • toURI,
  • canRead,
  • deleteOnExit,
  • getFileInputStream,
  • getName,
  • lastModified,
  • length,
  • createNewFile,
  • getBufferedReader

Popular in Java

  • Running tasks concurrently on multiple threads
  • getResourceAsStream (ClassLoader)
  • setScale (BigDecimal)
  • getOriginalFilename (MultipartFile)
    Return the original filename in the client's filesystem.This may contain path information depending
  • HttpURLConnection (java.net)
    An URLConnection for HTTP (RFC 2616 [http://tools.ietf.org/html/rfc2616]) used to send and receive d
  • MalformedURLException (java.net)
    This exception is thrown when a program attempts to create an URL from an incorrect specification.
  • ByteBuffer (java.nio)
    A buffer for bytes. A byte buffer can be created in either one of the following ways: * #allocate
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • JButton (javax.swing)
  • LoggerFactory (org.slf4j)
    The LoggerFactory is a utility class producing Loggers for various logging APIs, most notably for lo
  • 14 Best Plugins for Eclipse
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