MCPcopy
hub / github.com/borgbackup/borg / _create_dir

Method _create_dir

src/borg/fuse.py:349–358  ·  view source on GitHub ↗

Create directory

(self, parent, mtime=None)

Source from the content-addressed store, hash-verified

347 return self.inode_count
348
349 def _create_dir(self, parent, mtime=None):
350 """Create directory"""
351 ino = self._allocate_inode()
352 if mtime is not None:
353 self._items[ino] = Item(internal_dict=self.default_dir.as_dict())
354 self._items[ino].mtime = mtime
355 else:
356 self._items[ino] = self.default_dir
357 self.parent[ino] = parent
358 return ino
359
360 def find_inode(self, path, prefix=[]):
361 segments = prefix + path.split(b"/")

Callers 2

_create_filesystemMethod · 0.95
_process_innerMethod · 0.95

Calls 2

_allocate_inodeMethod · 0.95
as_dictMethod · 0.80

Tested by

no test coverage detected