• Home
  • Raw
  • Download

Lines Matching refs:_path

45         self._path = os.path.abspath(os.path.expanduser(path))
251 'tmp': os.path.join(self._path, 'tmp'),
252 'new': os.path.join(self._path, 'new'),
253 'cur': os.path.join(self._path, 'cur'),
255 if not os.path.exists(self._path):
257 os.mkdir(self._path, 0700)
261 raise NoSuchMailboxError(self._path)
286 dest = os.path.join(self._path, subdir, uniq + suffix)
310 os.remove(os.path.join(self._path, self._lookup(key)))
340 tmp_path = os.path.join(self._path, temp_subpath)
341 new_path = os.path.join(self._path, subdir, key + suffix)
353 f = open(os.path.join(self._path, subpath), 'r')
365 msg.set_date(os.path.getmtime(os.path.join(self._path, subpath)))
370 f = open(os.path.join(self._path, self._lookup(key)), 'r')
378 f = open(os.path.join(self._path, self._lookup(key)), 'rb')
422 for entry in os.listdir(self._path):
424 os.path.isdir(os.path.join(self._path, entry)):
430 return Maildir(os.path.join(self._path, '.' + folder),
436 path = os.path.join(self._path, '.' + folder)
446 path = os.path.join(self._path, '.' + folder)
466 for entry in os.listdir(os.path.join(self._path, 'tmp')):
467 path = os.path.join(self._path, 'tmp', entry)
483 path = os.path.join(self._path, 'tmp', uniq)
540 if os.path.exists(os.path.join(self._path, self._toc[key])):
571 f = open(self._path, 'rb+')
575 f = open(self._path, 'wb+')
577 raise NoSuchMailboxError(self._path)
579 f = open(self._path, 'rb')
664 new_file = _create_temporary(self._path)
690 mode = os.stat(self._path).st_mode
693 os.rename(new_file.name, self._path)
697 os.remove(self._path)
698 os.rename(new_file.name, self._path)
701 self._file = open(self._path, 'rb+')
923 if not os.path.exists(self._path):
925 os.mkdir(self._path, 0700)
926 os.close(os.open(os.path.join(self._path, '.mh_sequences'),
929 raise NoSuchMailboxError(self._path)
939 new_path = os.path.join(self._path, str(new_key))
968 path = os.path.join(self._path, str(key))
982 path = os.path.join(self._path, str(key))
1008 f = open(os.path.join(self._path, str(key)), 'r+')
1010 f = open(os.path.join(self._path, str(key)), 'r')
1035 f = open(os.path.join(self._path, str(key)), 'r+')
1037 f = open(os.path.join(self._path, str(key)), 'r')
1057 f = open(os.path.join(self._path, str(key)), 'rb')
1067 return iter(sorted(int(entry) for entry in os.listdir(self._path)
1072 return os.path.exists(os.path.join(self._path, str(key)))
1081 self._file = open(os.path.join(self._path, '.mh_sequences'), 'rb+')
1105 for entry in os.listdir(self._path):
1106 if os.path.isdir(os.path.join(self._path, entry)):
1112 return MH(os.path.join(self._path, folder),
1117 return MH(os.path.join(self._path, folder),
1122 path = os.path.join(self._path, folder)
1129 raise NotEmptyError('Folder not empty: %s' % self._path)
1135 f = open(os.path.join(self._path, '.mh_sequences'), 'r')
1161 f = open(os.path.join(self._path, '.mh_sequences'), 'r+')
1197 os.link(os.path.join(self._path, str(key)),
1198 os.path.join(self._path, str(prev + 1)))
1199 os.unlink(os.path.join(self._path, str(key)))
1201 os.rename(os.path.join(self._path, str(key)),
1202 os.path.join(self._path, str(prev + 1)))