From 32385bfd16fd588e13f5bdebae1c08fd729c5815 Mon Sep 17 00:00:00 2001 From: adam Date: Sat, 13 Feb 2021 18:39:26 +0200 Subject: unlink recurses --- php/node.php | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'php/node.php') 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); + } ?> -- cgit v1.2.3