Lines Matching refs:_file_path
45 self._file_path = file_path
46 self.file_stat = os.stat(self._file_path)
48 self.name = os.path.basename(self._file_path)
65 return util.get_etag(self._file_path)
85 return open(self._file_path, "rb", BUFFER_SIZE)
97 return open(self._file_path, "wb", BUFFER_SIZE)
106 os.unlink(self._file_path)
117 shutil.copy2(self._file_path, fpDest)
146 _logger.debug("move_recursive({}, {})".format(self._file_path, fpDest))
147 shutil.move(self._file_path, fpDest)
164 os.utime(self._file_path, (secs, secs))
179 self._file_path = file_path
181 self.file_stat = os.stat(self._file_path)
183 self.name = os.path.basename(self._file_path)
216 assert compat.is_unicode(self._file_path)
219 for name in os.listdir(self._file_path):
224 fp = os.path.join(self._file_path, name)
239 fp = os.path.join(self._file_path, compat.to_unicode(name))
286 shutil.rmtree(self._file_path, ignore_errors=False)
302 shutil.copystat(self._file_path, fpDest)
304 _logger.exception("Could not copy folder stats: {}".format(self._file_path))
333 _logger.debug("move_recursive({}, {})".format(self._file_path, fpDest))
334 shutil.move(self._file_path, fpDest)
351 os.utime(self._file_path, (secs, secs))