aboutsummaryrefslogtreecommitdiffstats
path: root/php/node.php
diff options
context:
space:
mode:
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);
+ }
?>