getting stats about the files and directorys