Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Cameron Simpson Newsgroups: comp.lang.python Subject: Re: Make a unique filesystem path, without creating the file Date: Tue, 23 Feb 2016 09:25:36 +1100 Lines: 16 Message-ID: References: <56CB4F60.4010201@stoneleaf.us> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed X-Trace: news.uni-berlin.de Uiwrf0nixcQKLGIV1CotLgD+Rm5yIT6QDAvZcLKW2T8w== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.026 X-Spam-Evidence: '*H*': 0.95; '*S*': 0.00; 'subject:file': 0.07; 'cc:addr:python-list': 0.09; 'filesystem': 0.09; 'ignore': 0.14; 'modification': 0.15; '>on': 0.16; 'entry.': 0.16; 'from:addr:cs': 0.16; 'from:addr:zip.com.au': 0.16; 'from:name:cameron simpson': 0.16; 'here).': 0.16; 'message-id:@cskk.homeip.net': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'simpson': 0.16; 'wrote:': 0.16; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'cheers,': 0.22; 'cc:no real name:2**0': 0.22; 'header:In-Reply- To:1': 0.24; 'header:User-Agent:1': 0.26; 'this.': 0.28; 'path,': 0.29; 'entry': 0.31; 'file': 0.34; 'path': 0.35; 'but': 0.36; 'there': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'charset:us- ascii': 0.37; 'received:localdomain': 0.38; 'does': 0.39; 'subject:the': 0.39; 'avoid': 0.61; 'real': 0.62; 'goal': 0.64; 'cameron': 0.66; 'touch': 0.66; '(let': 0.84; 'touching': 0.84; 'unique.': 0.84; 'ethan': 0.91; 'furman': 0.91; 'subject:Make': 0.91 Content-Disposition: inline In-Reply-To: <56CB4F60.4010201@stoneleaf.us> User-Agent: Mutt/1.5.24 (2015-08-30) X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.21rc2 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:103367 On 22Feb2016 10:11, Ethan Furman wrote: >On 02/14/2016 04:08 PM, Ben Finney wrote: > >>I am unconcerned with whether there is a real filesystem entry of that >>name; the goal entails having no filesystem activity for this. I want a >>valid unique filesystem path, without touching the filesystem. > >This is impossible. If you don't touch the file system you have no way to >know if the path is unique. I think Ben wants to avoid filesystem modification (let us ignore atime here). So one can read the filesystem to see what is current, but he does not want to actually make any new filesystem entry. Cheers, Cameron Simpson