Method for analyzing files and directories on Windows