iustin / pyxattr

A python module for accessing filesystem Extended Attributes
https://pyxattr.k1024.org/
GNU Lesser General Public License v2.1
30 stars 15 forks source link

Added support for OS X's slightly different xattr calls. #9

Closed ahknight closed 8 years ago

ahknight commented 8 years ago

I added some minor indirection around the base (foo)xattr C calls so that I could create functions with the Linux signature that call the OS X versions.

Note this does't handle the half-dozen OS X special cases (com.apple.ResourceFork, com.apple.FinderInfo, compressed EAs, etc.) but the API is low-level enough that it shouldn't matter in most cases (and if it does matter to someone, that's what ctypes/cffi is for).

iustin commented 8 years ago

Thanks for the patch. I have no way to test OSX, I'll see if I can configure travis-ci for it.

iustin commented 8 years ago

OK, travis-ci can test this, and it was trivial to set it up. Thanks!