@Override
	public int listxattr(String path, XattrLister lister) throws FuseException {
		try {
			Iterable<ExtendedAttribute> attributes = fileSystem.listExtendedAttributes(path);

			if (Environment.isMac())
				attributes = new MacOSXHack(attributes);
			
			for (ExtendedAttribute attribute : attributes)
				lister.add(attribute.getName());
						
		} catch (PathNotFoundException e) {
			return Errno.ENOENT;
		} catch (AccessDeniedException e) {
			return Errno.EACCES;
		} catch (UnsupportedFeatureException e) {
			if (Environment.isMac())
				return Errno.ENOTSUPP;
			//Sadly, we are not supposed to return "Not supported"
			return 0;
		}
		return 0;
	}