1
0
Fork 0
mirror of https://github.com/nachoparker/dutree synced 2024-04-19 02:53:48 +02:00

fix problem with some unicode starting filenames (#8)

This commit is contained in:
Nick Barry 2018-07-11 05:11:49 -04:00 committed by nacho
parent b047cbf8f1
commit 1fce6c8056
4 changed files with 4 additions and 4 deletions

2
Cargo.lock generated
View File

@ -8,7 +8,7 @@ dependencies = [
[[package]]
name = "dutree"
version = "0.2.8"
version = "0.2.9"
dependencies = [
"getopts 0.2.15 (registry+https://github.com/rust-lang/crates.io-index)",
"regex 0.2.10 (registry+https://github.com/rust-lang/crates.io-index)",

View File

@ -1,6 +1,6 @@
[package]
name = "dutree"
version = "0.2.8"
version = "0.2.9"
authors = ["nacho <nacho@ownyourbits.com>"]
description = "Command line tool to analyze disk usage"
repository = "https://github.com/nachoparker/dutree"

View File

@ -59,7 +59,7 @@ use std::os::unix::fs::MetadataExt;
use std::env;
use std::collections::HashMap;
const VERSTR : &str = "v0.2.8";
const VERSTR : &str = "v0.2.9";
const DEF_WIDTH : u16 = 80;
pub enum XResult<T,S> {
@ -274,7 +274,7 @@ impl<'a> Entry<'a> {
// argument filters
if cfg.exclude.iter().any( |p| entry_name == p ){ continue }
if cfg.hiddn_flag && &entry_name[..1] == "." { continue }
if cfg.hiddn_flag && entry_name.starts_with("."){ continue }
if cfg.no_dir_flg && path.is_dir() { continue }
let entry = Entry::new( &path.as_path(), cfg, depth );

0
test/πŸ‹.txt Normal file
View File