Add missing attributes to RemoteTarget.
@@ -820,6 +820,8 @@ atexit.register(RemoteCache.cleanup)
class RemoteTarget(FileSystemTarget):
+ fs = None
+
def __init__(self, path, fs, exists=None):
if not isinstance(fs, RemoteFileSystem):
raise ValueError("fs is not a RemoteFileSystem instance")
@@ -985,6 +987,10 @@ class RemoteDirectoryTarget(RemoteTarget, FileSystemDirectoryTarget):
del tmp
+RemoteTarget.file_class = RemoteFileTarget
+RemoteTarget.directory_class = RemoteDirectoryTarget
+
+
class RemoteFileProxy(object):
def __init__(self, fs, rpath, retry=0):
