Antoine Pitrou wrote:
> Robert Kern <robert.kern <at> gmail.com> writes:
> > 
> > Since one may have more than one filesystem side-by-side, this can't be just
> be 
> > a system-wide boolean somewhere. One would have to query the target 
> > directory 
> > for this information. I am not aware of the existence of code that does such
> a 
> > query, though.
> 
> Or you can just be practical and test for it. Create a file "foobar" and see 
> if
> you can open "FOOBAR" in read mode...

Agreed.  That is how Bazaar's test suite detects this, and it works well.

-Andrew.

_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to