Skip to content

Commit

Permalink
Dir listing added and readme also added
Browse files Browse the repository at this point in the history
  • Loading branch information
Gokul2406 committed Aug 7, 2021
0 parents commit 77ec37a
Show file tree
Hide file tree
Showing 6 changed files with 30 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
7 changes: 7 additions & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
[package]
name = "fwe"
version = "0.1.0"
edition = "2018"

# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

[dependencies]
Empty file added README.md
Empty file.
10 changes: 10 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
pub mod run {
pub fn run() {
let files = std::fs::read_dir(".").unwrap();
for file in files {
if let Ok(f) = file {
println!("{:?}", f.path());
}
}
}
}
4 changes: 4 additions & 0 deletions src/main.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
mod lib;
fn main() {
lib::run::run();
}

0 comments on commit 77ec37a

Please sign in to comment.