From 1f4c6d4f5154a1dc0c23915b85495d978ee46252 Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 2 Oct 2020 09:08:02 +0200 Subject: [PATCH] test writing in a sub-dir of a shared entry-directory --- vfs-context-links.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/vfs-context-links.php b/vfs-context-links.php index 12b997157b..9de82bad60 100644 --- a/vfs-context-links.php +++ b/vfs-context-links.php @@ -56,6 +56,10 @@ var_dump("Vfs::proppatch('$share_dir/test.txt', [['ns' => Vfs::DEFAULT_PROP_NAME var_dump("Vfs::url_stat('$share_dir/test-dir')=" . json_encode(Vfs::stat("$share_dir/test-dir"))); var_dump("Vfs::mkdir('$share_dir/test-dir')=" . json_encode(Vfs::mkdir("$share_dir/test-dir"))); var_dump("Vfs::url_stat('$share_dir/test-dir')=" . json_encode(Vfs::stat("$share_dir/test-dir"), JSON_UNESCAPED_SLASHES)); +var_dump(file_put_contents("vfs://default$share_dir/test-dir/test.txt", "Just a test ;)\n")); +var_dump("Vfs::url_stat('$share_dir/test-dir/test.txt')=" . json_encode(Vfs::stat("$share_dir/test-dir"), JSON_UNESCAPED_SLASHES)); +var_dump(file_get_contents("vfs://default$share_dir/test-dir/test.txt")); +var_dump("Vfs::unlink('$share_dir/test-dir/test.txt')=" . json_encode(Vfs::unlink("$share_dir/test-dir/test.txt"))); var_dump("Vfs::rmdir('$share_dir/test-dir')=" . json_encode(Vfs::rmdir("$share_dir/test-dir"))); var_dump("Vfs::url_stat('$share_dir/test-dir')=" . json_encode(Vfs::stat("$share_dir/test-dir")));