You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@opendal.apache.org by "knight42 (via GitHub)" <gi...@apache.org> on 2023/03/25 10:14:55 UTC

[GitHub] [incubator-opendal] knight42 commented on issue #1757: Allow users to opt-out creating `root` dir when building `Fs` backend

knight42 commented on issue #1757:
URL: https://github.com/apache/incubator-opendal/issues/1757#issuecomment-1483786146

   > 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.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@opendal.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org