Use Path::getFileStatus to get status-related info.