original_docstring: Scan all the files and directories present in the project
  
          @return: A list of all the files and directories found in the
          project.
  
          
docstring: Scan all the files and directories present in the project
docstring_tokens: Scan all the files and directories present in the project
code: def scan(self):
          """Scan all the files and directories present in the project
  
          @return: A list of all the files and directories found in the
          project.
  
          """
          from checkproject.utils import remove_prefix
          import os
  
          files = []
  
          for root, dirnames, filenames, in os.walk(self.root):
              for _file in [os.path.join(root, _f) for _f in filenames]:
                  if os.access(_file, os.X_OK):
                      files.append((remove_prefix(_file, self.root), 'f',
                                    'executable'))
                  elif os.path.islink(_file):
                      files.append((remove_prefix(_file, self.root), 'l',
                                    os.path.realpath(_file)))
                  else:
                      files.append((remove_prefix(_file, self.root), 'f'))
  
              for _dir in [os.path.join(root, _d) for _d in dirnames]:
                  files.append((remove_prefix(_dir, self.root), 'd'))
  
          return sorted(files)
code_tokens: def scan ( self ) : from checkproject . utils import remove_prefix import os files = [ ] for root , dirnames , filenames , in os . walk ( self . root ) : for _file in [ os . path . join ( root , _f ) for _f in filenames ] : if os . access ( _file , os . X_OK ) : files . append ( ( remove_prefix ( _file , self . root ) , 'f' , 'executable' ) ) elif os . path . islink ( _file ) : files . append ( ( remove_prefix ( _file , self . root ) , 'l' , os . path . realpath ( _file ) ) ) else : files . append ( ( remove_prefix ( _file , self . root ) , 'f' ) ) for _dir in [ os . path . join ( root , _d ) for _d in dirnames ] : files . append ( ( remove_prefix ( _dir , self . root ) , 'd' ) ) return sorted ( files )
short_docstring: Scan all the files and directories present in the project
short_docstring_tokens: Scan all the files and directories present in the project
comment: """Scan all the files and directories present in the project
  
          @return: A list of all the files and directories found in the
          project.
  
          """