chitralverma opened a new issue, #6761:
URL: https://github.com/apache/opendal/issues/6761

   ### Feature Description
   
   Maybe we can relax it a bit for a service that if `abc` is a dir, we return 
the correct metadata instead of just a `NotFound` error.
   
   
   ### Problem and Solution
   
   For an arbitrary path, `op.stat` expects the user to know whether its a file 
or directory beforehand so that it can be passed as "a/b/c/" or "a/b/c" or 
"/a/b/c". the metadata will accordingly contain the mode and if passed 
incorrectly, stat returns `NotFound` error. 
   
   This kind of defeats the purpose of returning `EntryMode` in metadata, and 
currently there is no deterministic way to directly check if its a file or 
directory.
   
   ### Additional Context
   
   discussed on [discord 
thread](https://discord.com/channels/1081052318650339399/1434894505836023930).
   
   ### Are you willing to contribute to the development of this feature?
   
   - [ ] Yes, I am willing to contribute to the development of this feature.


-- 
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: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to