modify  disk  path valid check