Lines Matching refs:path

23 import os.path
78 self._payload = os.path.join(self._tmpdir, 'apex_payload.img')
85 if os.path.exists(self._payload):
88 def get(self, path): argument
89 apex_dir, name = os.path.split(path)
155 def get(self, path): argument
156 apex_dir, name = os.path.split(path)
166 dirname = os.path.join(self._apex, apex_dir)
167 if os.path.exists(dirname):
169 filepath = os.path.join(dirname, basename)
170 is_dir = os.path.isdir(filepath)
172 is_symlink = os.path.islink(filepath)
177 size = os.path.getsize(filepath)
187 self._payload = os.path.join(self._tmpdir, 'apex_payload.zip')
194 if os.path.exists(self._payload):
197 def get(self, path): argument
198 apex_dir, name = os.path.split(path)
217 path = zipinfo.filename
220 assert path
230 while path:
231 apex_dir, base = os.path.split(path)
252 path = apex_dir
272 def is_file(self, path): argument
273 fs_object = self._provider.get(path)
280 def is_dir(self, path): argument
281 fs_object = self._provider.get(path)
288 def check_file(self, path): argument
289 ok, msg = self.is_file(path)
291 self.fail(msg, path)
292 self._expected_file_globs.add(path)
296 path = 'bin/%s' % filename
297 if not self.check_file(path):
299 if not self._provider.get(path).is_exec:
300 self.fail('%s is not executable', path)
303 path = 'bin/%s' % filename
304 fs_object = self._provider.get(path)
306 self.fail('Could not find %s', path)
309 self.fail('%s is a directory', path)
312 self.fail('%s is not a symlink', path)
313 self._expected_file_globs.add(path)
315 def arch_dirs_for_path(self, path): argument
324 dir = '%s/%s' % (path, arch)
372 paths.append(os.path.join(dir_path, name))
1033 def print_list_rec(path): argument
1034 apex_map = self._provider.read_dir(path)
1043 val_path = os.path.join(path, val.name)
1077 def print_tree_rec(path): argument
1078 apex_map = self._provider.read_dir(path)
1100 val_path = os.path.join(path, val.name)
1244 if not os.path.exists(test_args.debugfs):
1261 if not os.path.exists(test_args.apex):