├── .gitignore ├── Cargo.toml ├── LICENSE-APACHE ├── LICENSE-MIT ├── README.md ├── rustfmt.toml ├── src ├── common │ ├── mod.rs │ ├── pretty.rs │ └── smeta.rs ├── dir.rs ├── error.rs ├── featured │ ├── bin_nums.rs │ ├── mod.rs │ ├── with_json │ │ ├── load.rs │ │ ├── mod.rs │ │ ├── ndjson.rs │ │ └── save.rs │ └── with_toml.rs ├── file.rs ├── lib.rs ├── list │ ├── glob.rs │ ├── globs_dir_iter.rs │ ├── globs_file_iter.rs │ ├── iter_dirs.rs │ ├── iter_files.rs │ ├── list_options.rs │ ├── mod.rs │ └── sort.rs ├── reshape │ ├── collapser.rs │ ├── mod.rs │ └── normalizer.rs ├── sfile.rs ├── span │ ├── csv_spans.rs │ ├── line_spans.rs │ ├── mod.rs │ └── read_span.rs ├── spath.rs └── watch.rs ├── tests-data ├── another-dir │ ├── document.txt │ ├── notes.md │ └── sub-dir │ │ ├── data.txt │ │ ├── deep-folder │ │ ├── final.md │ │ └── final.txt │ │ └── example.md ├── dir1 │ ├── dir2 │ │ ├── dir3 │ │ │ ├── file7.md │ │ │ └── file8.txt │ │ ├── file5.md │ │ └── file6.txt │ ├── file3.md │ └── file4.txt ├── example.csv ├── file1.md └── file2.txt └── tests ├── tests_list_dirs.rs ├── tests_list_files.rs └── tests_spath.rs /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/.gitignore -------------------------------------------------------------------------------- /Cargo.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/Cargo.toml -------------------------------------------------------------------------------- /LICENSE-APACHE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/LICENSE-APACHE -------------------------------------------------------------------------------- /LICENSE-MIT: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/LICENSE-MIT -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/README.md -------------------------------------------------------------------------------- /rustfmt.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/rustfmt.toml -------------------------------------------------------------------------------- /src/common/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/common/mod.rs -------------------------------------------------------------------------------- /src/common/pretty.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/common/pretty.rs -------------------------------------------------------------------------------- /src/common/smeta.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/common/smeta.rs -------------------------------------------------------------------------------- /src/dir.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/dir.rs -------------------------------------------------------------------------------- /src/error.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/error.rs -------------------------------------------------------------------------------- /src/featured/bin_nums.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/featured/bin_nums.rs -------------------------------------------------------------------------------- /src/featured/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/featured/mod.rs -------------------------------------------------------------------------------- /src/featured/with_json/load.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/featured/with_json/load.rs -------------------------------------------------------------------------------- /src/featured/with_json/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/featured/with_json/mod.rs -------------------------------------------------------------------------------- /src/featured/with_json/ndjson.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/featured/with_json/ndjson.rs -------------------------------------------------------------------------------- /src/featured/with_json/save.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/featured/with_json/save.rs -------------------------------------------------------------------------------- /src/featured/with_toml.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/featured/with_toml.rs -------------------------------------------------------------------------------- /src/file.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/file.rs -------------------------------------------------------------------------------- /src/lib.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/lib.rs -------------------------------------------------------------------------------- /src/list/glob.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/list/glob.rs -------------------------------------------------------------------------------- /src/list/globs_dir_iter.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/list/globs_dir_iter.rs -------------------------------------------------------------------------------- /src/list/globs_file_iter.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/list/globs_file_iter.rs -------------------------------------------------------------------------------- /src/list/iter_dirs.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/list/iter_dirs.rs -------------------------------------------------------------------------------- /src/list/iter_files.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/list/iter_files.rs -------------------------------------------------------------------------------- /src/list/list_options.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/list/list_options.rs -------------------------------------------------------------------------------- /src/list/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/list/mod.rs -------------------------------------------------------------------------------- /src/list/sort.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/list/sort.rs -------------------------------------------------------------------------------- /src/reshape/collapser.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/reshape/collapser.rs -------------------------------------------------------------------------------- /src/reshape/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/reshape/mod.rs -------------------------------------------------------------------------------- /src/reshape/normalizer.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/reshape/normalizer.rs -------------------------------------------------------------------------------- /src/sfile.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/sfile.rs -------------------------------------------------------------------------------- /src/span/csv_spans.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/span/csv_spans.rs -------------------------------------------------------------------------------- /src/span/line_spans.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/span/line_spans.rs -------------------------------------------------------------------------------- /src/span/mod.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/span/mod.rs -------------------------------------------------------------------------------- /src/span/read_span.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/span/read_span.rs -------------------------------------------------------------------------------- /src/spath.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/spath.rs -------------------------------------------------------------------------------- /src/watch.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/src/watch.rs -------------------------------------------------------------------------------- /tests-data/another-dir/document.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/tests-data/another-dir/document.txt -------------------------------------------------------------------------------- /tests-data/another-dir/notes.md: -------------------------------------------------------------------------------- 1 | Some notes in markdown format. 2 | -------------------------------------------------------------------------------- /tests-data/another-dir/sub-dir/data.txt: -------------------------------------------------------------------------------- 1 | Some data in a text file. 2 | -------------------------------------------------------------------------------- /tests-data/another-dir/sub-dir/deep-folder/final.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/tests-data/another-dir/sub-dir/deep-folder/final.md -------------------------------------------------------------------------------- /tests-data/another-dir/sub-dir/deep-folder/final.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/tests-data/another-dir/sub-dir/deep-folder/final.txt -------------------------------------------------------------------------------- /tests-data/another-dir/sub-dir/example.md: -------------------------------------------------------------------------------- 1 | An example markdown file in a subdirectory. 2 | -------------------------------------------------------------------------------- /tests-data/dir1/dir2/dir3/file7.md: -------------------------------------------------------------------------------- 1 | A markdown file in the deepest subdirectory. 2 | -------------------------------------------------------------------------------- /tests-data/dir1/dir2/dir3/file8.txt: -------------------------------------------------------------------------------- 1 | A text file in the deepest subdirectory. 2 | -------------------------------------------------------------------------------- /tests-data/dir1/dir2/file5.md: -------------------------------------------------------------------------------- 1 | A markdown file in the second level subdirectory. 2 | -------------------------------------------------------------------------------- /tests-data/dir1/dir2/file6.txt: -------------------------------------------------------------------------------- 1 | A text file in the second level subdirectory. 2 | -------------------------------------------------------------------------------- /tests-data/dir1/file3.md: -------------------------------------------------------------------------------- 1 | A markdown file in the first subdirectory. 2 | -------------------------------------------------------------------------------- /tests-data/dir1/file4.txt: -------------------------------------------------------------------------------- 1 | A text file in the first subdirectory. 2 | -------------------------------------------------------------------------------- /tests-data/example.csv: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/tests-data/example.csv -------------------------------------------------------------------------------- /tests-data/file1.md: -------------------------------------------------------------------------------- 1 | This is a root level markdown file. 2 | -------------------------------------------------------------------------------- /tests-data/file2.txt: -------------------------------------------------------------------------------- 1 | This is a root level text file. 2 | -------------------------------------------------------------------------------- /tests/tests_list_dirs.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/tests/tests_list_dirs.rs -------------------------------------------------------------------------------- /tests/tests_list_files.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/tests/tests_list_files.rs -------------------------------------------------------------------------------- /tests/tests_spath.rs: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/jeremychone/rust-simple-fs/HEAD/tests/tests_spath.rs --------------------------------------------------------------------------------