use std::path::PathBuf;
use object_store::path::Path;
use std::io;
use multihash::Multihash;
use super::client::Client;
#[derive(Clone, Debug)]
pub struct UPath {
object: Option<Path>,
file: Option<PathBuf>,
}
impl UPath {
pub fn to_string(&self) -> String {
if self.object.is_some() {
format!("UPath(object:{:?})", self.object)
} else {
format!("UPath(file:{:?})", self.file)
}
}
pub async fn read_bytes(&self, _client: Client) -> io::Result<Vec<u8>> { unimplemented!() }
pub async fn write_bytes(&self, _client: Client, _input: Vec<u8>) -> io::Result<Vec<u8>> { unimplemented!() }
pub async fn parent(&self) -> Option<UPath> {
unimplemented!()
}
pub async fn hash(&self, _algorithm: String) -> Multihash<128> {
unimplemented!()
}
pub async fn is_folder(&self) -> bool {
unimplemented!()
}
}