summaryrefslogtreecommitdiff
path: root/fml/lib/File
diff options
context:
space:
mode:
authorfukachan <fukachan>2003-12-29 15:02:19 +0000
committerfukachan <fukachan>2003-12-29 15:02:19 +0000
commit535662b5ee3ca5707e4d2b818f345b3deabe1a58 (patch)
treed72234c00aa6576e17fe42b8a96dcfeab335b122 /fml/lib/File
parent98d5f7c4ef507cfb0d60f7fdbc39ccee9d104371 (diff)
downloadfml8-535662b5ee3ca5707e4d2b818f345b3deabe1a58.tar.gz
fml8-535662b5ee3ca5707e4d2b818f345b3deabe1a58.tar.bz2
fml8-535662b5ee3ca5707e4d2b818f345b3deabe1a58.zip
implement cache_file_path()
Diffstat (limited to 'fml/lib/File')
-rw-r--r--fml/lib/File/CacheDir.pm14
1 files changed, 13 insertions, 1 deletions
diff --git a/fml/lib/File/CacheDir.pm b/fml/lib/File/CacheDir.pm
index 80e34670..9ce991b8 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.24 2003/02/01 06:08:40 fukachan Exp $
+# $FML: CacheDir.pm,v 1.25 2003/08/23 04:35:42 fukachan Exp $
#
package File::CacheDir;
@@ -178,6 +178,17 @@ sub _take_file_name
}
+# Descriptions: return the path of file to be written
+# Arguments: OBJ($self)
+# Side Effects: none
+# Return Value: STR
+sub cache_file_path
+{
+ my ($self) = @_;
+ return $self->{ _opened_file };
+}
+
+
=head2 open(file, mode)
no argument.
@@ -206,6 +217,7 @@ sub open
# real open with $mode
if (defined $fh) {
+ $self->{ _opened_file } = $file;
$fh->open($file, $mode);
$fh->autoflush(1);
$self->{ _fh } = $fh;