mirror of
https://github.com/lucaspalomodevelop/autom.git
synced 2026-03-12 23:27:21 +00:00
ls ignore dotfiles
This commit is contained in:
parent
431d693132
commit
747bdf4aba
@ -69,6 +69,8 @@ void listScripts(int argc, char *argv[])
|
||||
std::cout << "Scripts:" << std::endl;
|
||||
for (const auto &entry : std::filesystem::directory_iterator(dir))
|
||||
{
|
||||
if (entry.path().filename().string().substr(0, 1) == ".")
|
||||
continue;
|
||||
std::string name = entry.path().filename().string();
|
||||
std::cout << " " << name << std::endl;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user