Class AbstractRecursiveDirectoryLister

    • Field Detail

      • m_Recursive

        protected boolean m_Recursive
        whether to look for files/dirs recursively.
      • m_MaxDepth

        protected int m_MaxDepth
        the maximum depth to look recursively (0 = only watch dir, -1 = infinite).
    • Constructor Detail

      • AbstractRecursiveDirectoryLister

        public AbstractRecursiveDirectoryLister()
        Initializes the object.
    • Method Detail

      • setRecursive

        public void setRecursive​(boolean value)
        Sets whether to search recursively.
        Specified by:
        setRecursive in interface RecursiveDirectoryLister
        Parameters:
        value - true if to search recursively
      • getRecursive

        public boolean getRecursive()
        Returns whether to search recursively.
        Specified by:
        getRecursive in interface RecursiveDirectoryLister
        Returns:
        true if search is recursively
      • setMaxDepth

        public void setMaxDepth​(int value)
        Sets the maximum depth to search (1 = only watch dir, -1 = infinite).
        Specified by:
        setMaxDepth in interface RecursiveDirectoryLister
        Parameters:
        value - the maximum depth
      • getMaxDepth

        public int getMaxDepth()
        Returns the maximum depth to search (1 = only watch dir, -1 = infinite).
        Specified by:
        getMaxDepth in interface RecursiveDirectoryLister
        Returns:
        the maximum depth