lstree/nodes/directory.py
def empty(self):
        """
        a directory node is empty if it doesn't contain any file and all its subdirectories
        are empty as well
        :return: True if the directory hierarchy is empty
        """
        if len(self._children) < 1:
            return True

        return self.file_count() == 0 and all([d.empty() for d in self.directories()])

        a directory node is empty if it doesn't contain any file and all its subdirectories
        are empty as well
        :return: True if the directory hierarchy is empty
        
a directory node is empty if it doesn't contain any file and all its subdirectories
are empty as well
a directory node is empty if it doesn ' t contain any file and all its subdirectories are empty as well
def empty(self):
        if len(self._children) < 1:
            return True
        return self.file_count() == 0 and all([d.empty() for d in self.directories()])
def empty ( self ) : if len ( self . _children ) < 1 : return True return self . file_count ( ) == 0 and all ( [ d . empty ( ) for d in self . directories ( ) ] )
a directory node is empty if it doesn't contain any file and all its subdirectories
are empty as well
a directory node is empty if it doesn ' t contain any file and all its subdirectories are empty as well
"""
        a directory node is empty if it doesn't contain any file and all its subdirectories
        are empty as well
        :return: True if the directory hierarchy is empty
        """
True if the directory hierarchy is empty
True if the directory hierarchy is empty
self