is_deletable function? Check if a file can be deleted
Moderator: General Moderators
is_deletable function? Check if a file can be deleted
I use the is_writable to determine if a file can be written, but how can I tell if a file can be deleted under a Windows environment? Even if the file has write permissions, it can't be deleted.
Re: is_deletable function? Check if a file can be deleted
You could you the php functions stat or fstat, the element that you want to look at is '2' or 'mode' from the returned associative array.
Re: is_deletable function? Check if a file can be deleted
Try is_writable on the parent directory.