MCPcopy Create free account
hub / github.com/LaBatata101/sith-language-server / empty

Function empty

crates/ruff_python_resolver/src/lib.rs:50–52  ·  view source on GitHub ↗

Create an empty file at the given path.

(path: PathBuf)

Source from the content-addressed store, hash-verified

48
49 /// Create an empty file at the given path.
50 fn empty(path: PathBuf) -> io::Result<PathBuf> {
51 create(path, "")
52 }
53
54 /// Create a partial `py.typed` file at the given path.
55 fn partial(path: PathBuf) -> io::Result<PathBuf> {

Callers 15

newMethod · 0.85
newMethod · 0.85
globalMethod · 0.85
line_rangeMethod · 0.85
newMethod · 0.85
next_tokenMethod · 0.85
new_tokensFunction · 0.85
parse_unicode_literalMethod · 0.85
parse_unicode_nameMethod · 0.85
parse_escaped_charMethod · 0.85
parse_identifierMethod · 0.85
parse_atomMethod · 0.85

Calls 1

createFunction · 0.85

Tested by 15

partial_stub_file_existsFunction · 0.68
partial_stub_init_existsFunction · 0.68
side_by_side_filesFunction · 0.68
stub_packageFunction · 0.68
stub_namespace_packageFunction · 0.68
typeshed_folderFunction · 0.68
py_typed_fileFunction · 0.68
py_typed_libraryFunction · 0.68
non_py_typed_libraryFunction · 0.68