Fix bad I/O helper fn replace errors

This commit is contained in:
CatalinVoss 2020-11-12 14:06:22 -08:00
parent abe5dd2eb4
commit c3dc4c0d5c

View File

@ -15,7 +15,7 @@ def path_exists_remote(path):
if path.startswith("gs://"):
from tensorflow.io import gfile
return gfile.exists(path)
return path_exists_remotes(path)
return os.path.exists(path)
def open_remote(path, mode):
@ -42,7 +42,7 @@ def isdir_remote(path):
if path.startswith("gs://"):
from tensorflow.io import gfile
return gfile.isdir(path)
return isdir_remote(path)
return os.path.isdir(path)
def listdir_remote(path):