[Lazarus] Removing read-only files in FileUtil.DeleteDirectory ?

Juha Manninen juha.manninen62 at gmail.com
Sun Apr 29 14:09:32 CEST 2012


On Sun, Apr 29, 2012 at 2:58 PM, Juha Manninen <juha.manninen62 at gmail.com>wrote:

> However on *nix systems you can't change a file's read-only status if you
> are not the file's owner.
>

Ok, that is not exactly true. It also depends on the file's settings for
its "Group" and "Others".
Anyway, there is a chance the rights cannot be changed, but then the file
cannot be deleted either.

If someone can test a solution that works well on any platform, it could be
applied.
I should be doing other things already...

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus-ide.org/pipermail/lazarus/attachments/20120429/e4e9f8fa/attachment-0003.html>


More information about the Lazarus mailing list