• Home
  • Raw
  • Download

Lines Matching refs:_path

39         self._path = os.path.abspath(os.path.expanduser(path))
276 'tmp': os.path.join(self._path, 'tmp'),
277 'new': os.path.join(self._path, 'new'),
278 'cur': os.path.join(self._path, 'cur'),
280 if not os.path.exists(self._path):
282 os.mkdir(self._path, 0o700)
286 raise NoSuchMailboxError(self._path)
311 dest = os.path.join(self._path, subdir, uniq + suffix)
336 os.remove(os.path.join(self._path, self._lookup(key)))
363 tmp_path = os.path.join(self._path, temp_subpath)
364 new_path = os.path.join(self._path, subdir, key + suffix)
376 with open(os.path.join(self._path, subpath), 'rb') as f:
385 msg.set_date(os.path.getmtime(os.path.join(self._path, subpath)))
390 with open(os.path.join(self._path, self._lookup(key)), 'rb') as f:
395 f = open(os.path.join(self._path, self._lookup(key)), 'rb')
439 for entry in os.listdir(self._path):
441 os.path.isdir(os.path.join(self._path, entry)):
447 return Maildir(os.path.join(self._path, '.' + folder),
453 path = os.path.join(self._path, '.' + folder)
463 path = os.path.join(self._path, '.' + folder)
483 for entry in os.listdir(os.path.join(self._path, 'tmp')):
484 path = os.path.join(self._path, 'tmp', entry)
500 path = os.path.join(self._path, 'tmp', uniq)
553 if os.path.exists(os.path.join(self._path, self._toc[key])):
584 f = open(self._path, 'rb+')
588 f = open(self._path, 'wb+')
590 raise NoSuchMailboxError(self._path)
592 f = open(self._path, 'rb')
676 new_file = _create_temporary(self._path)
702 mode = os.stat(self._path).st_mode
705 os.rename(new_file.name, self._path)
707 os.remove(self._path)
708 os.rename(new_file.name, self._path)
709 self._file = open(self._path, 'rb+')
941 if not os.path.exists(self._path):
943 os.mkdir(self._path, 0o700)
944 os.close(os.open(os.path.join(self._path, '.mh_sequences'),
947 raise NoSuchMailboxError(self._path)
957 new_path = os.path.join(self._path, str(new_key))
986 path = os.path.join(self._path, str(key))
1000 path = os.path.join(self._path, str(key))
1026 f = open(os.path.join(self._path, str(key)), 'rb+')
1028 f = open(os.path.join(self._path, str(key)), 'rb')
1051 f = open(os.path.join(self._path, str(key)), 'rb+')
1053 f = open(os.path.join(self._path, str(key)), 'rb')
1071 f = open(os.path.join(self._path, str(key)), 'rb')
1081 return iter(sorted(int(entry) for entry in os.listdir(self._path)
1086 return os.path.exists(os.path.join(self._path, str(key)))
1095 self._file = open(os.path.join(self._path, '.mh_sequences'), 'rb+')
1119 for entry in os.listdir(self._path):
1120 if os.path.isdir(os.path.join(self._path, entry)):
1126 return MH(os.path.join(self._path, folder),
1131 return MH(os.path.join(self._path, folder),
1136 path = os.path.join(self._path, folder)
1143 raise NotEmptyError('Folder not empty: %s' % self._path)
1149 with open(os.path.join(self._path, '.mh_sequences'), 'r', encoding='ASCII') as f:
1172 f = open(os.path.join(self._path, '.mh_sequences'), 'r+', encoding='ASCII')
1208 os.link(os.path.join(self._path, str(key)),
1209 os.path.join(self._path, str(prev + 1)))
1211 os.rename(os.path.join(self._path, str(key)),
1212 os.path.join(self._path, str(prev + 1)))
1214 os.unlink(os.path.join(self._path, str(key)))