q2316367743/open-list/fs does not have a README file
pub struct FileHash {
md5 : String?
sha1 : String?
sha256 : String?
}pub struct FileSystem {
// private fields
}async fn FileSystem::add_offline_download(self : FileSystem, path : String, urls : Array[String], tool? : String) -> Array[TaskInfo] raise OpenListErrorasync fn FileSystem::archive_decompress(self : FileSystem, src_dir : String, dst_dir : String, names : Array[String], archive_pass? : String, inner_path? : String, cache_full? : Bool, put_into_new_dir? : Bool, overwrite? : Bool) -> Array[TaskInfo] raise OpenListErrorasync fn FileSystem::archive_list(self : FileSystem, path : String, inner_path? : String, password? : String, refresh? : Bool, archive_pass? : String, page? : Int, per_page? : Int) -> PageResult[ArchiveContent] raise OpenListErrorasync fn FileSystem::archive_meta(self : FileSystem, path : String, password? : String, refresh? : Bool, archive_pass? : String) -> ArchiveMetaResponse raise OpenListErrorasync fn FileSystem::batch_rename(self : FileSystem, src_dir : String, rename_objects : Array[RenameObject]) -> Unit raise OpenListErrorasync fn FileSystem::copy(self : FileSystem, src_dir : String, dst_dir : String, names : Array[String], overwrite? : Bool, skip_existing? : Bool, merge? : Bool) -> Unit raise OpenListErrorasync fn FileSystem::dirs(self : FileSystem, path? : String, password? : String, force_root? : Bool) -> Array[DirResp] raise OpenListErrorasync fn FileSystem::get(self : FileSystem, path : String, password? : String) -> FsGetResponse raise OpenListErrorasync fn FileSystem::list(self : FileSystem, path : String, password? : String, refresh? : Bool, page? : Int, per_page? : Int) -> FsListResponse raise OpenListErrorasync fn FileSystem::move_to(self : FileSystem, src_dir : String, dst_dir : String, names : Array[String], overwrite? : Bool, skip_existing? : Bool, merge? : Bool) -> Unit raise OpenListErrorasync fn FileSystem::multipart_abort(self : FileSystem, upload_id : String) -> Unit raise OpenListErrorasync fn FileSystem::multipart_chunk(self : FileSystem, upload_id : String, index : Int, data : Bytes) -> SessionSnapshot raise OpenListErrorasync fn FileSystem::multipart_complete(self : FileSystem, upload_id : String) -> SessionSnapshot raise OpenListErrorasync fn FileSystem::multipart_init(self : FileSystem, path : String, size : Int64, chunk_size? : Int, overwrite? : Bool, content_type? : String, last_modified? : Int64, hash? : FileHash) -> MultipartInitResponse raise OpenListErrorasync fn FileSystem::multipart_status(self : FileSystem, upload_id : String) -> SessionSnapshot raise OpenListErrorasync fn FileSystem::multipart_status_by_path(self : FileSystem, path : String, size : Int64) -> SessionSnapshot raise OpenListErrorasync fn FileSystem::multipart_upload(self : FileSystem, path : String, data : Bytes, chunk_size? : Int, overwrite? : Bool, content_type? : String, hash? : FileHash) -> SessionSnapshot raise OpenListErrorasync fn FileSystem::other(self : FileSystem, path : String, request_method : String, data? : Json, password? : String) -> Json raise OpenListErrorasync fn FileSystem::put(self : FileSystem, path : String, reader : &Reader, content_length? : Int, overwrite? : Bool, as_task? : Bool, content_type? : String, last_modified? : Int64, hash? : FileHash) -> TaskInfo? raise OpenListErrorasync fn FileSystem::put_bytes(self : FileSystem, path : String, data : Bytes, overwrite? : Bool, as_task? : Bool, content_type? : String, last_modified? : Int64, hash? : FileHash) -> TaskInfo? raise OpenListErrorasync fn FileSystem::put_form(self : FileSystem, path : String, filename : String, data : Bytes, overwrite? : Bool, as_task? : Bool, content_type? : String, last_modified? : Int64, hash? : FileHash) -> TaskInfo? raise OpenListErrorasync fn FileSystem::recursive_move(self : FileSystem, src_dir : String, dst_dir : String, conflict_policy? : String) -> Unit raise OpenListErrorasync fn FileSystem::regex_rename(self : FileSystem, src_dir : String, src_name_regex : String, new_name_regex : String) -> Unit raise OpenListErrorasync fn FileSystem::remove(self : FileSystem, dir : String, names : Array[String]) -> Unit raise OpenListErrorasync fn FileSystem::remove_empty_directory(self : FileSystem, src_dir : String) -> Unit raise OpenListErrorasync fn FileSystem::rename(self : FileSystem, path : String, name : String, overwrite? : Bool) -> Unit raise OpenListErrorasync fn FileSystem::search(self : FileSystem, parent : String, keywords : String, scope? : Int, page? : Int, per_page? : Int, password? : String) -> PageResult[SearchResult] raise OpenListErrorpub struct RenameObject {
src_name : String
new_name : String
}Install
Download zipOpenList API 的 MoonBit 客户端:认证、用户、管理、文件系统、公开接口与分享六个子模块
Dependencies