Class DirectoryStack

    • Field Detail

    • Constructor Detail

      • DirectoryStack

        public DirectoryStack()
      • DirectoryStack

        public DirectoryStack​(List<File> entries)
    • Method Detail

      • getDirectories

        public List<File> getDirectories()
      • isEmpty

        public boolean isEmpty()
      • 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()