A
Allan Herriman
Hi,
I have a script that creates a temporary directory using
my $tempdir = tempdir( CLEANUP => 1 );
Some readonly files are then created in that directory. All are closed
before the script finishes.
On my development machine (Activestate Perl 5.16.0 on Windows 7) it
worked fine: the directory was removed after the script finished.
On the deployment machines (Cygwin Perl 5.10.1 on Windows Server 2003) it
doesn't remove the directory or any of the files in the directory.
I then added the following line at the end of the script:
remove_tree($tempdir, { safe => 0 });
but that didn't fix anything.
It didn't write anything to STDERR, which I think indicates it didn't
encounter detectable error conditions.
I'm using -w and strict.
I can manually delete the directory in windows explorer without any
warnings or prompts, so it doesn't appear to be a permission problem.
What do I do next?
Thanks,
Allan
I have a script that creates a temporary directory using
my $tempdir = tempdir( CLEANUP => 1 );
Some readonly files are then created in that directory. All are closed
before the script finishes.
On my development machine (Activestate Perl 5.16.0 on Windows 7) it
worked fine: the directory was removed after the script finished.
On the deployment machines (Cygwin Perl 5.10.1 on Windows Server 2003) it
doesn't remove the directory or any of the files in the directory.
I then added the following line at the end of the script:
remove_tree($tempdir, { safe => 0 });
but that didn't fix anything.
It didn't write anything to STDERR, which I think indicates it didn't
encounter detectable error conditions.
I'm using -w and strict.
I can manually delete the directory in windows explorer without any
warnings or prompts, so it doesn't appear to be a permission problem.
What do I do next?
Thanks,
Allan