Class DirectoryStack

java.lang.Object
org.nuxeo.ecm.webengine.model.impl.DirectoryStack

public class DirectoryStack extends Object
Author:
Bogdan Stefanescu
  • Field Details

    • dirs

      protected final List<File> dirs
  • Constructor Details

    • DirectoryStack

      public DirectoryStack()
    • DirectoryStack

      public DirectoryStack(List<File> entries)
  • Method Details

    • getDirectories

      public List<File> getDirectories()
    • isEmpty

      public boolean isEmpty()
    • addDirectory

      public void addDirectory(File dir) throws IOException
      Throws:
      IOException
    • getFile

      public File getFile(String name) throws IOException
      Gets the file given its name in this virtual directory.

      The canonical file is returned if any file is found

      Parameters:
      name - the file name to lookup
      Returns:
      the file in the canonical form
      Throws:
      IOException
    • listFiles

      public File[] listFiles()
    • listFiles

      public File[] listFiles(FileFilter filter)