aboutsummaryrefslogtreecommitdiffstats
path: root/php/node.php
diff options
context:
space:
mode:
authoradam <adam@>2021-02-13 18:39:26 +0200
committeradam <adam@>2021-02-13 18:39:26 +0200
commit32385bfd16fd588e13f5bdebae1c08fd729c5815 (patch)
tree359ddf50be0471339232be9455b72cccb74637f9 /php/node.php
parent3ed9e9c0350ecb299373b7e58139d142c72620b7 (diff)
downloadfileup-32385bfd16fd588e13f5bdebae1c08fd729c5815.tar.gz
unlink recurses
Diffstat (limited to 'php/node.php')
-rw-r--r--php/node.php6
1 files changed, 6 insertions, 0 deletions
diff --git a/php/node.php b/php/node.php
index 5074082..1336a5f 100644
--- a/php/node.php
+++ b/php/node.php
@@ -55,5 +55,11 @@ require_once "user.php";
return $dir_id;
}
}
+ function unlink_from_folder(string $abstract_path,string $filename,User $user)
+ {
+ global $database;
+ $parent_dir_id=get_directory($abstract_path,$user);
+ $database->unlink_nodes($parent_dir_id,$filename);
+ }
?>