MCPcopy Create free account
hub / github.com/dtormoen/tsk-tsk / remove_file

Function remove_file

src/file_system.rs:117–120  ·  view source on GitHub ↗

Removes a file.

(path: &Path)

Source from the content-addressed store, hash-verified

115
116/// Removes a file.
117pub async fn remove_file(path: &Path) -> Result<()> {
118 tokio::fs::remove_file(path).await?;
119 Ok(())
120}
121
122/// Copies a file from source to destination, preserving file permissions.
123pub async fn copy_file(from: &Path, to: &Path) -> Result<()> {

Callers 13

copy_repoMethod · 0.85
fix_submodule_pathsMethod · 0.85
write_fileFunction · 0.85
test_remove_fileFunction · 0.85
buildMethod · 0.85
executeMethod · 0.85
ensure_podman_serviceFunction · 0.85
test_migration_from_jsonFunction · 0.85
remove_pidMethod · 0.85

Calls

no outgoing calls