- バックアップ一覧
- 差分 を表示
- ソース を表示
- バックアップ を表示
- Perl/ファイルシステム/ファイル・ディレクトリ操作 (Path-Class) へ行く。
- 1 (2011-01-03 (月) 17:35:37)
- 2 (2011-01-03 (月) 18:01:26)
- 3 (2011-06-11 (土) 05:53:14)
- 追加された行はこの色です。
- 削除された行はこの色です。
* ファイル・ディレクトリハンドラ操作 [#eb03d34b] * ディレクトリ内のファイル(ディレクトリ)を全削除 [#pe19cd9f] Path::Classを使う。 File::Pathを使う。 my $dir = dir('tmp'); foreach my $ent ($dir->children) { $ent->remove(); } ** 参考 [#n04aae82] http://search.cpan.org/perldoc?File::Path http://search.cpan.org/perldoc?Path::Class