In my code, there is one line like this:
It does make the subdir with a mode 755. Why not 777?
In addition, I also have one line like this:
This line works fine on aix, redhat, suse. But not on windows. The error message I got on windows is:
Can't make directory mydir read+writeable: Bad file number at myperl.pl line 522.
Please note that line 522 is the line number of rmtree().
I have made sure the mode of the subdir to be removed by rmtree is 755 to the user who is running the perl code. Therefore, it should not be a permission problem.
Thank you for you help.
Code:
mkpath($DIR, 0, 0777);
It does make the subdir with a mode 755. Why not 777?
In addition, I also have one line like this:
Code:
rmtree($DIR);
This line works fine on aix, redhat, suse. But not on windows. The error message I got on windows is:
Can't make directory mydir read+writeable: Bad file number at myperl.pl line 522.
Please note that line 522 is the line number of rmtree().
I have made sure the mode of the subdir to be removed by rmtree is 755 to the user who is running the perl code. Therefore, it should not be a permission problem.
Thank you for you help.