+more checks (isDir ? ...)