Added checks if timeseries is of type file to file-like methods.