Lines Matching refs:filename
36 def _full_path(self, filename):
37 assert self._is_under(self._path, filename)
38 return self._filesystem.join(self._path, filename)
48 def _is_under(self, dir, filename):
49 return bool(self._filesystem.relpath(self._filesystem.join(dir, filename), dir))
51 def open(self, filename):
52 return FileSetFileHandle(self, filename, self._filesystem)
57 def read(self, filename):
58 return self._filesystem.read_text_file(self._full_path(filename))
60 def extract(self, filename, path):
62 src = self._full_path(filename)
63 dest = self._filesystem.join(path, filename)
64 # As filename may have slashes in it, we must ensure that the same
69 def delete(self, filename):
70 filename = self._full_path(filename)
71 self._filesystem.remove(filename)