Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Random832 Newsgroups: comp.lang.python Subject: Why doesn't os.remove work on directories? Date: Tue, 22 Dec 2015 23:29:11 -0500 Lines: 5 Message-ID: Mime-Version: 1.0 Content-Type: text/plain X-Trace: news.uni-berlin.de czS5x6zhaHfZ5uiIv5tPdwqABOKPsm6vvnAKunZgwWDQ== Cancel-Lock: sha1:eCHtbWHYhiwR50YYAvjW9hvNj0E= Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'received:80.91': 0.09; 'received:80.91.229': 0.09; 'received:gmane.org': 0.09; 'received:list': 0.09; 'subject:Why': 0.09; 'decision?': 0.16; 'posix': 0.16; 'rationale': 0.16; 'received:80.91.229.3': 0.16; 'received:io': 0.16; 'received:plane.gmane.org': 0.16; 'received:psf.io': 0.16; 'surprising': 0.16; 'function,': 0.22; 'header:User-Agent:1': 0.26; 'header:X-Complaints-To:1': 0.26; 'anyone': 0.32; 'received:comcast.net': 0.33; 'there': 0.36; 'subject:work': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'received:org': 0.37; 'files': 0.38; 'to:addr:python.org': 0.40 X-Injected-Via-Gmane: http://gmane.org/ X-Gmane-NNTP-Posting-Host: c-68-39-146-59.hsd1.in.comcast.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.20+ Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Xref: csiph.com comp.lang.python:100760 This is surprising to anyone accustomed to the POSIX C remove function, which can remove either files or directories. Is there any known rationale for this decision?