implementation XHFileAttribute logic