diff options
| author | fukachan <fukachan> | 2002-09-28 09:27:42 +0000 |
|---|---|---|
| committer | fukachan <fukachan> | 2002-09-28 09:27:42 +0000 |
| commit | 853270e800f3733cbbb31bf6d74b052eef6a2127 (patch) | |
| tree | 8bdcf5bcd76b828498f42e62071e60a77900d61d /fml/lib/File | |
| parent | ee8f7c907631f76052fff6ff8563327df04df160 (diff) | |
| download | fml8-853270e800f3733cbbb31bf6d74b052eef6a2127.tar.gz fml8-853270e800f3733cbbb31bf6d74b052eef6a2127.tar.bz2 fml8-853270e800f3733cbbb31bf6d74b052eef6a2127.zip | |
we should not use hard-coded file/dir mode
Diffstat (limited to 'fml/lib/File')
| -rw-r--r-- | fml/lib/File/CacheDir.pm | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/fml/lib/File/CacheDir.pm b/fml/lib/File/CacheDir.pm index add5dbc8..98a2483b 100644 --- a/fml/lib/File/CacheDir.pm +++ b/fml/lib/File/CacheDir.pm @@ -4,7 +4,7 @@ # All rights reserved. This program is free software; you can # redistribute it and/or modify it under the same terms as Perl itself. # -# $FML: CacheDir.pm,v 1.19 2002/09/15 00:07:53 fukachan Exp $ +# $FML: CacheDir.pm,v 1.20 2002/09/22 14:56:57 fukachan Exp $ # package File::CacheDir; @@ -128,14 +128,14 @@ sub _take_file_name my $sequence_file_name = $args->{ sequence_file_name } || '.seq'; my $modulus = $args->{ modulus } || 128; my $cache_type = $args->{ cache_type } || 'cyclic'; + my $dir_mode = $args->{ dir_mode } || 0755; my $file; eval q{ use File::Spec;}; unless (-d $directory) { use File::Path; - my $mode = $args->{ directory_mode } || 0755; - mkpath( [ $directory ], 0, $mode); + mkpath( [ $directory ], 0, $dir_mode); } if ($cache_type eq 'temporal') { |
