Tabnine Logo
FilesystemConfig.isFollowLinks
Code IndexAdd Tabnine to your IDE (free)

How to use
isFollowLinks
method
in
com.emc.ecs.sync.config.storage.FilesystemConfig

Best Java code snippets using com.emc.ecs.sync.config.storage.FilesystemConfig.isFollowLinks (Showing top 5 results out of 315)

origin: EMCECS/ecs-sync

protected LinkOption[] getLinkOptions() {
  return config.isFollowLinks() ? new LinkOption[0] : new LinkOption[]{LinkOption.NOFOLLOW_LINKS};
}
origin: EMCECS/ecs-sync

private ObjectSummary createSummary(File file) {
  boolean link = isSymLink(file);
  boolean directory = file.isDirectory() && (config.isFollowLinks() || !link);
  long size = directory || link ? 0 : file.length();
  return new ObjectSummary(file.getPath(), directory, size);
}
origin: EMCECS/ecs-sync

private InputStream readDataStream(String identifier) {
  try {
    File file = createFile(identifier);
    if (!config.isFollowLinks() && isSymLink(file)) return new ByteArrayInputStream(new byte[0]);
    else return createInputStream(file);
  } catch (IOException e) {
    throw new RuntimeException(e);
  }
}
origin: EMCECS/ecs-sync

boolean isLink = !config.isFollowLinks() && isSymLink(file);
boolean directory = Files.isDirectory(file.toPath(), getLinkOptions());
origin: EMCECS/ecs-sync

Assert.assertEquals(object.isFollowLinks(), xObject.isFollowLinks());
Assert.assertEquals(object.getDeleteOlderThan(), xObject.getDeleteOlderThan());
Assert.assertEquals(object.getDeleteCheckScript(), xObject.getDeleteCheckScript());
com.emc.ecs.sync.config.storageFilesystemConfigisFollowLinks

Popular methods of FilesystemConfig

  • <init>
  • getPath
  • isUseAbsolutePath
  • setPath
  • getDeleteCheckScript
  • getDeleteOlderThan
  • getExcludedPaths
  • getModifiedSince
  • isIncludeBaseDir
  • setExcludedPaths
  • setModifiedSince
    Date/time should be provided in ISO-8601 UTC format (i.e. 2015-01-01T04:30:00Z)
  • setStoreMetadata
  • setModifiedSince,
  • setStoreMetadata,
  • isStoreMetadata,
  • setDeleteCheckScript,
  • setDeleteOlderThan,
  • setFollowLinks,
  • setUseAbsolutePath

Popular in Java

  • Running tasks concurrently on multiple threads
  • putExtra (Intent)
  • setScale (BigDecimal)
  • setContentView (Activity)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • FileWriter (java.io)
    A specialized Writer that writes to a file in the file system. All write requests made by calling me
  • PrintWriter (java.io)
    Wraps either an existing OutputStream or an existing Writerand provides convenience methods for prin
  • Proxy (java.net)
    This class represents proxy server settings. A created instance of Proxy stores a type and an addres
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • JLabel (javax.swing)
  • Top PhpStorm plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

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