renamed method to convertFileStatus() and corrected it to return a  combination of File::StatusFlags