When will os.remove fail?

Lele Gaifax lele at metapensiero.it
Sun Mar 12 14:00:58 EDT 2017


Steve D'Aprano <steve+python at pearwood.info> writes:

> Under what circumstances will os.remove fail to remove a file?
>
> If you don't own the file and have no write permission, if it is on
> read-only media, anything else?

I would say that what matter is the permission on the directory containing the
file, not on the file itself.

ciao, lele.
-- 
nickname: Lele Gaifax | Quando vivrò di quello che ho pensato ieri
real: Emanuele Gaifas | comincerò ad aver paura di chi mi copia.
lele at metapensiero.it  |                 -- Fortunato Depero, 1929.




More information about the Python-list mailing list