fs utility functons.