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

   ### Describe the bug
   
   When calling `create_dir` with gdrive as the schema, the directory is not 
created with an expected name.
   I was using the latest Node.js bindings.
   
   ### Steps to Reproduce
   
   ```js
   import { Operator } from 'opendal'
   
   const op = new Operator('gdrive', { access_token: '****' })
   
   // a directory with name 'a/' created since Google Drive treats '/' as a 
valid character for file name
   await op.createDir('a/')
   
   // an error occurred:
   // Error: NotADirectory (permanent) at create_dir, context: { service: 
gdrive, path: a } => the path trying to create should end with `/`
   await op.createDir('a')
   ```
   
   There seems to be no way to create a directory whose name does not contain a 
trailing slash.
   
   <img width="495" alt="Image" 
src="https://github.com/user-attachments/assets/34ffbcc7-3667-4b27-b715-4a14c23f199f";
 />
   
   ### Expected Behavior
   
   While calling `await op.createDir('a/')`, a directory named 'a' rather than 
'a/' should be created
   
   ### Additional Context
   
   _No response_
   
   ### Are you willing to submit a PR to fix this bug?
   
   - [ ] Yes, I would like to submit a PR.


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