dav-server-opendalfs

Crates.iodav-server-opendalfs
lib.rsdav-server-opendalfs
version0.2.2
sourcesrc
created_at2024-02-19 09:19:23.072084
updated_at2024-11-07 06:02:57.458055
descriptionUse OpenDAL as a backend to access data in various service with WebDAV protocol
homepagehttps://opendal.apache.org/
repositoryhttps://github.com/apache/opendal
max_upload_size
id1145007
size31,879
Xuanwo (Xuanwo)

documentation

README

Apache OpenDALâ„¢ dav-server integration

Build Status Latest Version Crate Downloads chat

dav-server-opendalfs is an dav-server implementation using opendal.

This crate can help you to access ANY storage services with the same webdav API.

Useful Links

Examples

use anyhow::Result;
use dav_server::davpath::DavPath;
use dav_server_opendalfs::OpendalFs;
use opendal::services::Memory;
use opendal::Operator;

#[tokio::test]
async fn test() -> Result<()> {
 let op = Operator::new(Memory::default())?.finish();

 let webdavfs = OpendalFs::new(op);

 let metadata = webdavfs
     .metadata(&DavPath::new("/").unwrap())
     .await
     .unwrap();
 println!("{}", metadata.is_dir());

 Ok(())
}

Branding

The first and most prominent mentions must use the full form: Apache OpenDALâ„¢ of the name for any individual usage (webpage, handout, slides, etc.) Depending on the context and writing style, you should use the full form of the name sufficiently often to ensure that readers clearly understand the association of both the OpenDAL project and the OpenDAL software product to the ASF as the parent organization.

For more details, see the Apache Product Name Usage Guide.

License and Trademarks

Licensed under the Apache License, Version 2.0: http://www.apache.org/licenses/LICENSE-2.0

Apache OpenDAL, OpenDAL, and Apache are either registered trademarks or trademarks of the Apache Software Foundation.

Commit count: 3022

cargo fmt