[Python-ideas] Cross-platform lockfile (was: Implementation of shutil.move)
aquavitae69 at gmail.com
Sun Aug 14 09:36:05 CEST 2011
However... It might be possible to use the "immutable" attribute in linux
(and hopefully other unixes) to lock a file. This is still not completely
secure since root can remove this attribute and change the file, but this is
highly unlikely to happen by accident.
On Sun, Aug 14, 2011 at 9:26 AM, David Townshend <aquavitae69 at gmail.com>wrote:
> As far as I can make out, this package is designed to lock files from
> access by different threads within a program by using a ".lock" file. I
> can't see how this could lock a file from external modification.
> On Sun, Aug 14, 2011 at 7:27 AM, Ben Finney <ben+python at benfinney.id.au>wrote:
>> Devin Jeanpierre <jeanpierreda at gmail.com>
>> > As far as I am aware, locked files are impossible to do in a
>> > cross-platform way
>> The ‘lockfile’ library <URL:http://pypi.python.org/pypi/lockfile> is an
>> attempt to implement cross-platform lockfile functionality.
>> I would like that library to be part of the Python standard library, but
>> I think the current maintainer (Skip Montanaro) no longer has the
>> available time to get that done.
>> Anyone care to work with me on getting ‘lockfile’ into the Python
>> standard library?
>> \ “I'm a born-again atheist.” —Gore Vidal |
>> `\ |
>> _o__) |
>> Ben Finney
>> Python-ideas mailing list
>> Python-ideas at python.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Python-ideas