Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #103369
| Path | csiph.com!news.swapon.de!fu-berlin.de!uni-berlin.de!not-for-mail |
|---|---|
| From | Ethan Furman <ethan@stoneleaf.us> |
| Newsgroups | comp.lang.python |
| Subject | Re: Make a unique filesystem path, without creating the file |
| Date | Mon, 22 Feb 2016 14:51:34 -0800 |
| Lines | 21 |
| Message-ID | <mailman.52.1456181443.20994.python-list@python.org> (permalink) |
| References | <56CB4F60.4010201@stoneleaf.us> <20160222222536.GA84710@cskk.homeip.net> |
| Mime-Version | 1.0 |
| Content-Type | text/plain; charset=windows-1252; format=flowed |
| Content-Transfer-Encoding | 7bit |
| X-Trace | news.uni-berlin.de gdEDMHJsRfTgeqg3TPSNdgpJs11K+e0ZqC+dsWvitffQ== |
| Return-Path | <ethan@stoneleaf.us> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.030 |
| X-Spam-Evidence | '*H*': 0.94; '*S*': 0.00; 'subject:file': 0.07; 'filesystem': 0.09; 'from:addr:ethan': 0.09; 'from:addr:stoneleaf.us': 0.09; 'from:name:ethan furman': 0.09; 'message-id:@stoneleaf.us': 0.09; 'ignore': 0.14; 'modification': 0.15; 'entry.': 0.16; 'here).': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'simpson': 0.16; 'wrote:': 0.16; 'exists': 0.18; '>>>': 0.20; 'name;': 0.22; 'header:In-Reply- To:1': 0.24; 'header:User-Agent:1': 0.26; 'this.': 0.28; 'path,': 0.29; '~ethan~': 0.29; 'entry': 0.31; '"the': 0.32; 'says': 0.32; 'file': 0.34; 'path': 0.35; 'but': 0.36; 'there': 0.36; 'to:addr :python-list': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'does': 0.39; 'subject:the': 0.39; 'to:addr:python.org': 0.40; 'avoid': 0.61; 'real': 0.62; 'charset:windows-1252': 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 |
| User-Agent | Mozilla/5.0 (X11; Linux i686; rv:31.0) Gecko/20100101 Thunderbird/31.2.0 |
| In-Reply-To | <20160222222536.GA84710@cskk.homeip.net> |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.21rc2 |
| Precedence | list |
| List-Id | General discussion list for the Python programming language <python-list.python.org> |
| List-Unsubscribe | <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe> |
| List-Archive | <http://mail.python.org/pipermail/python-list/> |
| List-Post | <mailto:python-list@python.org> |
| List-Help | <mailto:python-list-request@python.org?subject=help> |
| List-Subscribe | <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe> |
| Xref | csiph.com comp.lang.python:103369 |
Show key headers only | View raw
On 02/22/2016 02:25 PM, Cameron Simpson wrote: > On 22Feb2016 10:11, Ethan Furman <ethan@stoneleaf.us> 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. Hmm -- well, he says "the goal entails having no filesystem activity for this", and seeing what already exists definitely requires file system activity . . . -- ~Ethan~
Back to comp.lang.python | Previous | Next | Find similar | Unroll thread
Re: Make a unique filesystem path, without creating the file Ethan Furman <ethan@stoneleaf.us> - 2016-02-22 14:51 -0800
csiph-web