work on getxattr

This commit is contained in:
Barry Tulchinsky 2013-12-20 19:55:43 -05:00
parent 5d022c3ca3
commit 37d998fb55
1 changed files with 10 additions and 0 deletions

View File

@ -1598,6 +1598,16 @@ define(function(require) {
function _getxattr(context, path, name, callback) { function _getxattr(context, path, name, callback) {
if(!nullCheck(path, callback)) return; if(!nullCheck(path, callback)) return;
function fetch_value(error, value) {
if (error) {
callback(error);
}
else {
callback(null, value);
}
}
getxattr_file(context, path, name, fetch_value);
} }
function _setxattr(context, path, name, value, flag, callback) { function _setxattr(context, path, name, value, flag, callback) {