MCPcopy Create free account
hub / github.com/twisted/twisted / createDirectory

Method createDirectory

src/twisted/python/filepath.py:1604–1612  ·  view source on GitHub ↗

Create the directory the L{FilePath} refers to. @see: L{makedirs} @raise OSError: If the directory cannot be created.

(self)

Source from the content-addressed store, hash-verified

1602 return cmp(self.path, other.path)
1603
1604 def createDirectory(self) -> None:
1605 """
1606 Create the directory the L{FilePath} refers to.
1607
1608 @see: L{makedirs}
1609
1610 @raise OSError: If the directory cannot be created.
1611 """
1612 os.mkdir(self.path)
1613
1614 def requireCreate(self, val: bool = True) -> None:
1615 """

Callers 15

test_alwaysPreferPyMethod · 0.95
_underUnderPathTestMethod · 0.95
test_tlsMethod · 0.95
addFakePluginFunction · 0.95
copyToMethod · 0.45
createStructureMethod · 0.45
makeProjectMethod · 0.45
makeSomeFilesMethod · 0.45

Calls

no outgoing calls

Tested by 15

test_alwaysPreferPyMethod · 0.76
_underUnderPathTestMethod · 0.76
test_tlsMethod · 0.76
addFakePluginFunction · 0.76
createStructureMethod · 0.36
makeProjectMethod · 0.36
makeSomeFilesMethod · 0.36
setUpMethod · 0.36