Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Dartのディレクトリ全体とすべてのファイルを再帰的に削除するにはどうすればよいですか?
例えば:
/path/to/project/foo.dart /path/to/project/remove/all/of/these
思ったより簡単です。
私があなたを正しく理解していれば、それは次のようになります:
import 'dart:io'; main() { // Deletes the directory "remove" with all folders and files under it. new Directory('remove').delete(recursive: true); }