Lines Matching refs:_path

38         self._path = os.path.abspath(os.path.expanduser(path))
273 'tmp': os.path.join(self._path, 'tmp'),
274 'new': os.path.join(self._path, 'new'),
275 'cur': os.path.join(self._path, 'cur'),
277 if not os.path.exists(self._path):
279 os.mkdir(self._path, 0o700)
283 raise NoSuchMailboxError(self._path)
308 dest = os.path.join(self._path, subdir, uniq + suffix)
333 os.remove(os.path.join(self._path, self._lookup(key)))
360 tmp_path = os.path.join(self._path, temp_subpath)
361 new_path = os.path.join(self._path, subdir, key + suffix)
373 with open(os.path.join(self._path, subpath), 'rb') as f:
382 msg.set_date(os.path.getmtime(os.path.join(self._path, subpath)))
387 with open(os.path.join(self._path, self._lookup(key)), 'rb') as f:
392 f = open(os.path.join(self._path, self._lookup(key)), 'rb')
436 for entry in os.listdir(self._path):
438 os.path.isdir(os.path.join(self._path, entry)):
444 return Maildir(os.path.join(self._path, '.' + folder),
450 path = os.path.join(self._path, '.' + folder)
460 path = os.path.join(self._path, '.' + folder)
480 for entry in os.listdir(os.path.join(self._path, 'tmp')):
481 path = os.path.join(self._path, 'tmp', entry)
497 path = os.path.join(self._path, 'tmp', uniq)
550 if os.path.exists(os.path.join(self._path, self._toc[key])):
581 f = open(self._path, 'rb+')
585 f = open(self._path, 'wb+')
587 raise NoSuchMailboxError(self._path)
589 f = open(self._path, 'rb')
673 new_file = _create_temporary(self._path)
699 mode = os.stat(self._path).st_mode
702 os.rename(new_file.name, self._path)
704 os.remove(self._path)
705 os.rename(new_file.name, self._path)
706 self._file = open(self._path, 'rb+')
938 if not os.path.exists(self._path):
940 os.mkdir(self._path, 0o700)
941 os.close(os.open(os.path.join(self._path, '.mh_sequences'),
944 raise NoSuchMailboxError(self._path)
954 new_path = os.path.join(self._path, str(new_key))
983 path = os.path.join(self._path, str(key))
997 path = os.path.join(self._path, str(key))
1023 f = open(os.path.join(self._path, str(key)), 'rb+')
1025 f = open(os.path.join(self._path, str(key)), 'rb')
1048 f = open(os.path.join(self._path, str(key)), 'rb+')
1050 f = open(os.path.join(self._path, str(key)), 'rb')
1068 f = open(os.path.join(self._path, str(key)), 'rb')
1078 return iter(sorted(int(entry) for entry in os.listdir(self._path)
1083 return os.path.exists(os.path.join(self._path, str(key)))
1092 self._file = open(os.path.join(self._path, '.mh_sequences'), 'rb+')
1116 for entry in os.listdir(self._path):
1117 if os.path.isdir(os.path.join(self._path, entry)):
1123 return MH(os.path.join(self._path, folder),
1128 return MH(os.path.join(self._path, folder),
1133 path = os.path.join(self._path, folder)
1140 raise NotEmptyError('Folder not empty: %s' % self._path)
1146 with open(os.path.join(self._path, '.mh_sequences'), 'r', encoding='ASCII') as f:
1169 f = open(os.path.join(self._path, '.mh_sequences'), 'r+', encoding='ASCII')
1205 os.link(os.path.join(self._path, str(key)),
1206 os.path.join(self._path, str(prev + 1)))
1208 os.rename(os.path.join(self._path, str(key)),
1209 os.path.join(self._path, str(prev + 1)))
1211 os.unlink(os.path.join(self._path, str(key)))