diff options
Diffstat (limited to 'src/cmd_fsops.cc')
-rw-r--r-- | src/cmd_fsops.cc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/src/cmd_fsops.cc b/src/cmd_fsops.cc index 5133313..ac4bdef 100644 --- a/src/cmd_fsops.cc +++ b/src/cmd_fsops.cc @@ -21,10 +21,12 @@ namespace cmd { } else if(fs::directory_entry(truePath).is_directory()) { for(fs::directory_entry de : fs::directory_iterator(truePath)) { - if(de.is_directory()) { - text << de.path().filename().string() << "/" << std::endl; - } else { - text << de.path().stem().string() << std::endl; + if(de.path().filename().string()[0] != '.') { + if(de.is_directory()) { + text << de.path().filename().string() << "/" << std::endl; + } else { + text << de.path().stem().string() << std::endl; + } } } } |