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

How to use
onDirectoryCreate
method
in
org.apache.commons.io.monitor.FileAlterationListener

Best Java code snippets using org.apache.commons.io.monitor.FileAlterationListener.onDirectoryCreate (Showing top 5 results out of 315)

origin: commons-io/commons-io

/**
 * Fire directory/file created events to the registered listeners.
 *
 * @param entry The file entry
 */
private void doCreate(final FileEntry entry) {
  for (final FileAlterationListener listener : listeners) {
    if (entry.isDirectory()) {
      listener.onDirectoryCreate(entry.getFile());
    } else {
      listener.onFileCreate(entry.getFile());
    }
  }
  final FileEntry[] children = entry.getChildren();
  for (final FileEntry aChildren : children) {
    doCreate(aChildren);
  }
}
origin: com.impetus.fabric/fabric-jdbc-driver-shaded

/**
 * Fire directory/file created events to the registered listeners.
 *
 * @param entry The file entry
 */
private void doCreate(final FileEntry entry) {
  for (final FileAlterationListener listener : listeners) {
    if (entry.isDirectory()) {
      listener.onDirectoryCreate(entry.getFile());
    } else {
      listener.onFileCreate(entry.getFile());
    }
  }
  final FileEntry[] children = entry.getChildren();
  for (final FileEntry aChildren : children) {
    doCreate(aChildren);
  }
}
origin: io.github.stephenc.docker/docker-client-shaded

/**
 * Fire directory/file created events to the registered listeners.
 *
 * @param entry The file entry
 */
private void doCreate(final FileEntry entry) {
  for (final FileAlterationListener listener : listeners) {
    if (entry.isDirectory()) {
      listener.onDirectoryCreate(entry.getFile());
    } else {
      listener.onFileCreate(entry.getFile());
    }
  }
  final FileEntry[] children = entry.getChildren();
  for (final FileEntry aChildren : children) {
    doCreate(aChildren);
  }
}
origin: Nextdoor/bender

/**
 * Fire directory/file created events to the registered listeners.
 *
 * @param entry The file entry
 */
private void doCreate(FileEntry entry) {
  for (FileAlterationListener listener : listeners) {
    if (entry.isDirectory()) {
      listener.onDirectoryCreate(entry.getFile());
    } else {
      listener.onFileCreate(entry.getFile());
    }
  }
  FileEntry[] children = entry.getChildren();
  for (FileEntry aChildren : children) {
    doCreate(aChildren);
  }
}
origin: org.onosproject/onlab-thirdparty

/**
 * Fire directory/file created events to the registered listeners.
 *
 * @param entry The file entry
 */
private void doCreate(FileEntry entry) {
  for (FileAlterationListener listener : listeners) {
    if (entry.isDirectory()) {
      listener.onDirectoryCreate(entry.getFile());
    } else {
      listener.onFileCreate(entry.getFile());
    }
  }
  FileEntry[] children = entry.getChildren();
  for (FileEntry aChildren : children) {
    doCreate(aChildren);
  }
}
org.apache.commons.io.monitorFileAlterationListeneronDirectoryCreate

Javadoc

Directory created Event.

Popular methods of FileAlterationListener

  • onDirectoryChange
    Directory changed Event.
  • onDirectoryDelete
    Directory deleted Event.
  • onFileChange
    File changed Event.
  • onFileCreate
    File created Event.
  • onFileDelete
    File deleted Event.
  • onStart
    File system observer started checking event.
  • onStop
    File system observer finished checking event.

Popular in Java

  • Updating database using SQL prepared statement
  • notifyDataSetChanged (ArrayAdapter)
  • getExternalFilesDir (Context)
  • compareTo (BigDecimal)
  • BufferedInputStream (java.io)
    A BufferedInputStream adds functionality to another input stream-namely, the ability to buffer the i
  • Permission (java.security)
    Legacy security code; do not use.
  • Format (java.text)
    The base class for all formats. This is an abstract base class which specifies the protocol for clas
  • Locale (java.util)
    Locale represents a language/country/variant combination. Locales are used to alter the presentatio
  • BoxLayout (javax.swing)
  • JFileChooser (javax.swing)
  • Top 15 Vim Plugins
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