in reply to RE: Is this system call hazardous for my computers health??
in thread Is this system call hazardous for my computers health??
I agree with you trusting built-in functions more than system calls. I was trying to stay away from modules, and understand how to best use system calls without compromising security.
On a side note, I find it interesting that perl has built in functions to chdir, rmdir, mkdir, rename, and symlink but does not have functions to move, copy, or erase files.
So it seems the best solution would be to use a module that properly handles removing files or directories such as your suggestion of File::Path. However, if not using modules the next best would be to use system to rm the directory and files and then recreate the directory such as this code.
Thanks!
zzspectrez
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
move, copy, or delete files (RE: Is this system call hazardous for my computers health??)
by tye (Sage) on Nov 17, 2000 at 05:31 UTC |