2020-09-21 02:32:08 -06:00
|
|
|
from tools.lib.url_file import URLFile
|
2020-07-20 09:10:08 -06:00
|
|
|
|
2020-01-17 11:07:22 -07:00
|
|
|
|
2020-02-24 19:24:54 -07:00
|
|
|
def FileReader(fn, debug=False):
|
|
|
|
if fn.startswith("http://") or fn.startswith("https://"):
|
|
|
|
return URLFile(fn, debug=debug)
|
|
|
|
else:
|
|
|
|
return open(fn, "rb")
|