Lines Matching refs:open
347 f = open(os.path.join(self._path, subpath), 'r')
364 f = open(os.path.join(self._path, self._lookup(key)), 'r')
372 f = open(os.path.join(self._path, self._lookup(key)), 'rb')
434 os.close(os.open(maildirfolder_path, os.O_CREAT | os.O_WRONLY,
468 """Create a file in the tmp subdirectory and open and return it."""
491 # Fall through to here if stat succeeded or open raised EEXIST.
565 f = open(self._path, 'rb+')
569 f = open(self._path, 'wb+')
573 f = open(self._path, 'rb')
695 self._file = open(self._path, 'rb+')
916 os.close(os.open(os.path.join(self._path, '.mh_sequences'),
960 f = open(path, 'rb+')
974 f = open(path, 'rb+')
984 os.close(os.open(path, os.O_WRONLY | os.O_TRUNC))
998 f = open(os.path.join(self._path, str(key)), 'r+')
1000 f = open(os.path.join(self._path, str(key)), 'r')
1025 f = open(os.path.join(self._path, str(key)), 'r+')
1027 f = open(os.path.join(self._path, str(key)), 'r')
1047 f = open(os.path.join(self._path, str(key)), 'rb')
1071 self._file = open(os.path.join(self._path, '.mh_sequences'), 'rb+')
1125 f = open(os.path.join(self._path, '.mh_sequences'), 'r')
1151 f = open(os.path.join(self._path, '.mh_sequences'), 'r+')
1153 os.close(os.open(f.name, os.O_WRONLY | os.O_TRUNC))
2014 """Create a file if it doesn't exist and open for reading and writing."""
2015 fd = os.open(path, os.O_CREAT | os.O_EXCL | os.O_RDWR, 0666)
2017 return open(path, 'rb+')
2022 """Create a temp file based on path and open for reading and writing."""
2185 fp = open(os.path.join(self.dirname, fn))