Home | History | Annotate | Download | only in rootdir

Lines Matching full:dir_path

170     def _ListDir(self, dir_path, file_type="all"):
171 """Lists files in dir_path with specific file_type.
174 dir_path: The current directory to list content.
190 # FindFiles will include dir_path if file_type is "all" or "dir".
191 # Excludes dir_path before return.
193 self._shell, dir_path, "*", find_option)) - set([dir_path])
201 def _TraverseRootDir(self, dir_path="/"):
203 # dir_path is eligible to check when being invoked here.
204 dirs = [dir_path]
205 for d in self._ListDir(dir_path, "dir"):
214 for dir_path in self._dirs_to_check:
215 current_dirs = self._ListDir(dir_path, "dir")
228 def _CheckSymlinks(dir_path):
229 """Checks the symlinks under dir_path."""
230 current_symlinks = self._ListDir(dir_path, "symlink")
245 for dir_path in self._dirs_to_check:
246 _CheckSymlinks(dir_path)
259 def _CheckFiles(dir_path):
260 """Checks the files under dir_path."""
261 current_files = self._ListDir(dir_path, "file")
281 for dir_path in self._dirs_to_check:
282 _CheckFiles(dir_path)
291 for dir_path in self._dirs_to_check:
292 unknown_files = (self._ListDir(dir_path) -
293 self._ListDir(dir_path, "dir") -
294 self._ListDir(dir_path, "symlink") -
295 self._ListDir(dir_path, "file"))