SONAR-926 Add a fromIOFile method on Directory to be consistent with File