check if file can be read from tmp dir