Anyone have an xattr class or plugin?

I am looking to pull some extended attribute file data that xattr(1) does not include - specifically the ATTR_CMN_BKUPTIME attribute. Class extension or plugin (@Christian Schmitz) are fine.

cant just use xatttr -l on it to get it to list the hex and deal with the hex ?

Nope - that’s one of the bits that xattr doesn’t return.

NSURL?

Not that I’ve found.

Huh
Dont have a file here that has this set so I cant eve muck around with the BSD API for such things

[quote=311559:@Norman Palardy]Huh
Dont have a file here that has this set so I cant eve muck around with the BSD API for such things[/quote]
All files on an HFS+ filesystem have the backup time assigned. I know the BSD API and we use it in our C code, I was just wondering if there was a quick solution in Xojo / plugins.

Huh! I could have sworn there was a file property for the backup date as I was considering using it myself, however checking the documents now shows that there’s actually very few properties for a file, more for a volume or iCloud item.

You do get the btime from “stat”, but that’s the “birthtime” not the “backuptime”.

MBS Plugins:

http://www.monkeybreadsoftware.net/module-extendedattributesmbs.shtml

And backup date is here:

http://www.monkeybreadsoftware.net/files-folderitem-method.shtml#4

[quote=311573:@Christian Schmitz]And backup date is here:

http://www.monkeybreadsoftware.net/files-folderitem-method.shtml#4[/quote]
I had already looked into the ExtendedAttributesMBS module and it didn’t provide the ATTR_CMN_BKUPTIME. But, this does provide it! Thanks. I searched on your documents site, but nothing came up (but I searched on backup time, not backup date).

@Sam Rowlands - this is the Droid that you are looking for :slight_smile:

ATTR_CMN_BKUPTIME is something else, not one of the extended attributes.
It looks like a flag in the normal file attributes record.