in reply to Re: Correct code for deleting old file?
in thread Correct code for deleting old file?
I'm not sure about this. My information may be a bit out of date.
Calling unlink on some non-file types (directory or similar) still has "unspecified" consequences on some operating systems, hasn't it? And -e only checks for existence, whereas -f would check specifically for a file, making the call to unlink safer, right?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Correct code for deleting old file?
by rovf (Priest) on Jun 18, 2012 at 08:16 UTC | |
by cavac (Prior) on Jun 18, 2012 at 17:29 UTC |