Logo Search packages:      
Sourcecode: catfish version File versions  Download package

def catfish::catfish::file_is_hidden (   self,
  current = None 
Determine if a file is hidden or in a hidden folder

Definition at line 558 of file catfish.py.

        """Determine if a file is hidden or in a hidden folder"""

        if filename == '': return False
        path, name = os.path.split(filename)
        if len(name) and name[0] == '.':
            return True
        if current <> None:
            if '.' in current:
                return False
        for folder in path.split(os.path.sep):
            if len(folder):
                if folder[0] == '.':
                    return True
        return False

Generated by  Doxygen 1.6.0   Back to index