mirror of
https://github.com/YGGverse/nexy.git
synced 2026-03-31 17:25:27 +00:00
reorganize local ns
This commit is contained in:
parent
415cc3b17e
commit
3cc53b3dc7
1 changed files with 1 additions and 1 deletions
|
|
@ -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 {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue