Difference between com.apple.FinderInfo (getxattr()) and ATTR_CMN_FNDRINFO (getattrlist())
site_archiver@lists.apple.com Delivered-To: darwin-dev@lists.apple.com Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=RPHyhlFt0xiJpFCq4v7GYyqmNrjTHaq00l0Jog40QXc=; b=vdNbBuxQPL9T/Lyf8OpAeHhRRhn/s7sUEoyAPKFJBWj87N61uHXuLfDj9gXjbogMI1 Io4P/FxWk4v379e5UtrSJA6klnf75Euupgb33dMGs/Gqk+3UaER6F3OkwtoL4Bm/6oD+ Uy2fGAbr5WoBUu0tw42Qwb6+8Of6BKIl4hLgk= Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=cYcvEeUCi2fi5KQBJottgre6Dgn+D1opA6mUKB09twE7N84kUOunEgt0/cfGUX6HTa 0QpxsC3dM9MGIBhVXryDBwvLP+/pcx9RIFE77s9vSxGfpppuxl46rivhzjlXtKTIJXPW YFN5GDOBAXNrVw2oIqYEo2FjyrjYjr/fNmf04= Hi, The getattrlist() API returns Finder Flags through ATTR_CMN_FNDRINFO while the getxattr() returns them through the Extended attribute com.apple.FinderInfo. Any flags set using /Developer/Tools/GetFileInfo except for L (Locked) flag shows up in com.apple.FinderInfo. The L flag shows up as uchg in chflags Though the two look identical are there any differences? Are there any flags returned by only one of the 2 API's. Is anyone a subset of the other ? While doing a backup of files, is it ok to use either of them ( ATTR_CMN_FNDRINFO or com.apple.FinderInfo ) or should I use both of them ? Thanks _______________________________________________ Do not post admin requests to the list. They will be ignored. Darwin-dev mailing list (Darwin-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/darwin-dev/site_archiver%40lists.appl... This email sent to site_archiver@lists.apple.com
participants (1)
-
rohan a