From 7370dee913a63a2f7d4bc09bd4e5605eac2eb382 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Wed, 29 Apr 2020 02:23:29 +0200 Subject: fix bookmark construction in user fix colortag file creation by fixing fn access media --- app/fn/fn.php | 3 --- 1 file changed, 3 deletions(-) (limited to 'app/fn') diff --git a/app/fn/fn.php b/app/fn/fn.php index 461f129..103062a 100644 --- a/app/fn/fn.php +++ b/app/fn/fn.php @@ -425,9 +425,6 @@ function accessfile(string $path, bool $createdir = false): bool if (!is_writable($dir)) { throw new \InvalidArgumentException("Directory '$dir' is not writable."); } - if (!file_exists($path)) { - throw new \InvalidArgumentException("The file '$path' does not exist."); - } if (is_file($path) && !is_writable($path)) { throw new \InvalidArgumentException("The file '$path' is not writable."); } -- cgit v1.2.3