Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #94243
| Path | csiph.com!optima2.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!1.eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed8.news.xs4all.nl!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail |
|---|---|
| Return-Path | <jhihn@gmx.com> |
| X-Original-To | python-list@python.org |
| Delivered-To | python-list@mail.python.org |
| X-Spam-Status | OK 0.014 |
| X-Spam-Evidence | '*H*': 0.97; '*S*': 0.00; 'modify': 0.04; 'rename': 0.07; 'closed.': 0.09; 'issue?': 0.09; 'python': 0.10; 'subject:not': 0.11; 'operation,': 0.16; 'received:gmx.com': 0.16; 'written.': 0.16; 'unlike': 0.23; 'written': 0.24; 'script': 0.25; "i've": 0.25; 'moved': 0.27; 'looks': 0.29; 'from:addr:gmx.com': 0.29; 'mention': 0.30; 'changed': 0.33; 'file': 0.34; 'server': 0.34; 'done': 0.35; 'expected': 0.35; 'should': 0.36; 'instead': 0.36; 'event.': 0.36; 'tools,': 0.36; 'to:addr:python-list': 0.36; 'subject:?': 0.36; 'being': 0.37; 'files': 0.38; 'to:addr:python.org': 0.40; 'behavior': 0.61; 'our': 0.64; 'elsewhere': 0.66; 'watched': 0.91 |
| MIME-Version | 1.0 |
| From | "Jason H" <jhihn@gmx.com> |
| To | python-list@python.org |
| Subject | linux os.rename() not an actual rename? |
| Content-Type | text/plain; charset=UTF-8 |
| Date | Mon, 20 Jul 2015 20:02:51 +0200 |
| Importance | normal |
| Sensitivity | Normal |
| X-Priority | 3 |
| X-Provags-ID | V03:K0:G5oHBBxVGAHT+M5QwN5WNo2zkgq/ucWdywosUrs/0ZX moqv1eR9YW0ByA8TSpBW4x0AIs4VB9fkmQL7KY+ofN486UULxp dvXM7RxCTGYW9PX/ky8x56BggniWY0pEWLqQB2II+uyzIQhLnf DXP3uMJEsKwG4g3hXrQR+HT2xRz8KmejSjncCibDo/EpOc5u4r qagAjrL5hLS/WOzoVHKJZknSc9x0qpp6nlPr6sr/MSIvjMiRO7 Vyep3gHyHBqZvXJMbHqw/IOndPPgtqmCrbP1CkGvLQ+/BQE1Qf NmP5JT1ABXqRl7s8Ytg1XANgMy6 |
| X-UI-Out-Filterresults | notjunk:1;V01:K0:zclCcR+db1I=:hN5W+95OhvBnemmQ6LMxo/ iQYMUum3Mhe/oaBD+Bv0fhfAuAgL5MFsJuiss8ICxUIrJFEclDfuojMJA15uuXir20ubqtXq+ VXlBf5PzDbPDC38Wxl+IMyPyyceKF3qxZCKmEiIQi6jcEr6hzblAbYYr+ROTYs4tlSbgV+Qd8 sF3a5+KTxPGZMQihPCQdAwYeDVMzvekN3mkxbWKMzixipD/6bSmGa0/yjq93/KI0a2dh0C1Ty 3P7YuSC4zWNezPJsI/cmPZCXkGiA1HnMVvuK72qpoHMdOi29/BBSDGv7VSYZ8Bz7sr7sehZIO TPyx9zpdsMPYAj/GDe4KA9539jQQkCfoWhxuvxXUxUwo15OW3idqy8GjvchdwPXYDiwzSBl2w RUjAIIkBCbN9m6ytvquckwBrRuoAP1wWKd8/8QtpW7hi8+evv+KY+fMCmBIsu4xKnpp6quIXw 7B4H2om6cQ== |
| X-Mailman-Approved-At | Mon, 20 Jul 2015 20:23:21 +0200 |
| X-BeenThere | python-list@python.org |
| X-Mailman-Version | 2.1.20+ |
| 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> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.791.1437416602.3674.python-list@python.org> (permalink) |
| Lines | 3 |
| NNTP-Posting-Host | 2001:888:2000:d::a6 |
| X-Trace | 1437416602 news.xs4all.nl 2920 [2001:888:2000:d::a6]:44409 |
| X-Complaints-To | abuse@xs4all.nl |
| Xref | csiph.com comp.lang.python:94243 |
Show key headers only | View raw
I have a server process that looks (watches via inotify) for files to be moved (renamed) into a particular directory from elsewhere on the same filesystem. We do this because it is an atomic operation, and our server process can see the modify events of the file being written before it is closed. The rename functions as a 'completed' event. We have a python script that attempts to perform this behavior - to os.rename() a file into the watched directory after it is done being written. However unlike other tools, we don't see a proper 'rename' event. Instead we just see a 'changed' event. I've changed the implementation of the script to os.system('mv ...') and we get the expected 'rename' event.
Is this known issue? Should I be seeing a proper rename event? The only mention in the docs about the rename behavior is that it is atomic, as required by POSIX.
Back to comp.lang.python | Previous | Next — Next in thread | Find similar | Unroll thread
linux os.rename() not an actual rename? "Jason H" <jhihn@gmx.com> - 2015-07-20 20:02 +0200
Re: linux os.rename() not an actual rename? Jon Ribbens <jon+usenet@unequivocal.co.uk> - 2015-07-20 18:43 +0000
Re: linux os.rename() not an actual rename? Marko Rauhamaa <marko@pacujo.net> - 2015-07-20 21:50 +0300
Re: linux os.rename() not an actual rename? Christian Heimes <christian@python.org> - 2015-07-20 20:58 +0200
Re: linux os.rename() not an actual rename? "Jason H" <jhihn@gmx.com> - 2015-07-20 21:40 +0200
csiph-web