mirror of
https://github.com/wichtounet/thor-os.git
synced 2025-09-17 16:51:33 -04:00
Hide dotfiles
This commit is contained in:
parent
6521c35b2a
commit
3245b29bea
@ -347,6 +347,11 @@ int64_t vfs::stat(size_t fd, stat_info& info){
|
||||
info.flags |= STAT_FLAG_HIDDEN;
|
||||
}
|
||||
|
||||
// All files starting with a .dot are hidden by default
|
||||
if(fs_path.base_name()[0] == '.'){
|
||||
info.flags |= STAT_FLAG_HIDDEN;
|
||||
}
|
||||
|
||||
info.created = f.created;
|
||||
info.modified = f.modified;
|
||||
info.accessed = f.accessed;
|
||||
|
Loading…
x
Reference in New Issue
Block a user