public static Uri fileToUri(FileSystemInfo file, bool isDir) { return pathToUri(file.FullName, isDir); }