Xuanwo commented on issue #5722:
URL: https://github.com/apache/opendal/issues/5722#issuecomment-2713000972

   The current usage is:
   
   ```dart
   import 'opendal.dart';
   
   void main() async {
     await RustLib.init();
     final File = FileManager.initOp(schemeStr: "fs", map: {"root": "/tmp"});
     // drop-in
     final file = File('file.txt');
     var is_exists = await file.exists();
     print(is_exists);
   }
   ```
   
   - Is this how the end users will use opendal after we publish it?
   - Is `RustLib.init()` required? What will happen if users have multiple rust 
lib? Can we hide it under `FileManager::init`?
   - `FileManager.initOp` seems not a good API name. `Op` shouldn't have any 
meaning to dart users I guess. Can we use ` FileManager.init` or 
`FileManager.new`?


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