You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by GitBox <gi...@apache.org> on 2023/03/25 10:26:30 UTC

[GitHub] [incubator-opendal] knight42 added a comment to the discussion: Allow users to opt-out creating `root` dir when building `Fs` backend

GitHub user knight42 added a comment to the discussion: Allow users to opt-out creating `root` dir when building `Fs` backend

> I don't understand the purpose of creating a file system backend on a non-existent root.

Users might not create a fs backend with a non-existent root on purpose. 

For instance I once tested `oli cat` by reading a local file and I mistyped the path, like `oli cat /tmp/not-exist/foo`, and then a dir named `non-exist` was created under `/tmp`. 

Another case is that if I run the test [test_parse_fs_location](https://github.com/apache/incubator-opendal/blob/0069c92af7f6a4380653caa01276776031ef03e9/bin/oli/src/config/mod.rs#L304-L312) locally, a dir named `foo/bar` will be created under PWD, which supprises me as no read/write operation is actually performed.

GitHub link: https://github.com/apache/incubator-opendal/discussions/1765#discussioncomment-5425811

----
This is an automatically sent email for commits@opendal.apache.org.
To unsubscribe, please send an email to: commits-unsubscribe@opendal.apache.org