23 Mar 2016 by Sergey Alexandrovich Kryukov
Most likely, you simply should not delete the file the user don't have permission to delete. This would be the best solution in most cases. Know legitimate directories and files, and those which you should not touch.But now, let's consider the cases when you really need to delete the file...