Check file attributes before sync