3
これは、短いまたはより良い方法はありファイルやディレクトリが見つかった場合は、より良い方法がありますか?
var fileExists =
new File(path).existsSync() ||
new Directory(path).existsSync() ||
new Link(path).existsSync()
ビット面倒なようですか?
これは、短いまたはより良い方法はありファイルやディレクトリが見つかった場合は、より良い方法がありますか?
var fileExists =
new File(path).existsSync() ||
new Directory(path).existsSync() ||
new Link(path).existsSync()
ビット面倒なようですか?
FileSystemEntity.typeSync(path) != FileSystemEntityType.NOT_FOUND
がhttps://github.com/dart-lang/sdk/issues/2883#issuecomment-108317456
も参照される短い方法