summaryrefslogtreecommitdiff
path: root/fml/lib/File
diff options
context:
space:
mode:
authorfukachan <fukachan>2002-09-28 09:27:42 +0000
committerfukachan <fukachan>2002-09-28 09:27:42 +0000
commit853270e800f3733cbbb31bf6d74b052eef6a2127 (patch)
tree8bdcf5bcd76b828498f42e62071e60a77900d61d /fml/lib/File
parentee8f7c907631f76052fff6ff8563327df04df160 (diff)
downloadfml8-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.pm6
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') {