Re: Picking up resource forks and extended attributes on Mac OS X ?!
- From: Miles <semanticist@xxxxxxxxx>
- Date: Sat, 30 Aug 2008 12:24:13 -0400
Mitrokhin wrote:
Also (dare I ask for this too) If some nice soul could point me in the
right direction for picking up files with extended attributes under OS
X I'd be really gratefull to. Should it be done the same way, ie. via
os. calls or perhaps by way of a popen or ... ?
Mac OS X 10.5 comes with a Python "xattr" package pre-installed, which
the xattr command-line utility is built on top of. Furthermore, the
resource fork can be accessed as an extended attribute
(xattr.XATTR_RESOURCEFORK_NAME). This might also be true of Mac OS X
10.4, but I don't recall for sure and I don't have access to it to
check.
-Miles
.
- Prev by Date: Most pythonic way of weighted random selection
- Next by Date: Wanted: python script to convert to/from UTF-8 to/from XML Entities
- Previous by thread: Most pythonic way of weighted random selection
- Next by thread: Wanted: python script to convert to/from UTF-8 to/from XML Entities
- Index(es):
Relevant Pages
|