When will os.remove fail?

Jon Ribbens jon+usenet at unequivocal.eu
Tue Mar 14 11:27:37 EDT 2017


On 2017年03月14日, Lele Gaifax <lele at metapensiero.it> wrote:
> Jon Ribbens <jon+usenet at unequivocal.eu> writes:
>>> Otherwise, if a file is unwritable, standard input is a terminal, and
>>> the -f or --force option is not given, or the -i or --interac‐
>>> tive=always option is given, rm prompts the user for whether to remove
>>> the file. If the response is not affirmative, the file is skipped.
>>>> Yes, this describes the behaviour if you specify -I or -i,
>> as I mentioned - not if you don't specify either of those options.
>> English is not my native language, but that's not how I understand that
> paragraph: if -i is given, it always ask, regardless the writable bit,
> otherwise it does when f is readonly and no -f is given.

You're understanding that paragraph correctly, but are
misunderstanding what I wrote - I didn't disagree with
what you're saying.


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /