reorganize local ns

This commit is contained in:
yggverse 2025-06-25 10:38:32 +03:00
parent 415cc3b17e
commit 3cc53b3dc7

View file

@ -6,7 +6,6 @@ use list_config::ListConfig;
use std::{ use std::{
fs::{self, Metadata}, fs::{self, Metadata},
io::Read, io::Read,
os::unix::fs::MetadataExt,
path::PathBuf, path::PathBuf,
str::FromStr, str::FromStr,
}; };
@ -89,6 +88,7 @@ impl Storage {
/// ///
/// * make sure the `path` is allowed before call this method! /// * make sure the `path` is allowed before call this method!
fn list(&self, path: &PathBuf) -> Result<String> { fn list(&self, path: &PathBuf) -> Result<String> {
use std::os::unix::fs::MetadataExt; // @TODO
use urlencoding::encode; use urlencoding::encode;
/// Format bytes /// Format bytes
fn b(v: u64) -> String { fn b(v: u64) -> String {