use lstat() on root path