Commit 24bae94e by willmcgugan@gmail.com

Fix for exception message

parent c8f36c66
...@@ -8,6 +8,7 @@ import os.path ...@@ -8,6 +8,7 @@ import os.path
platform = platform.system() platform = platform.system()
class FSMount(Command): class FSMount(Command):
if platform == "Windows": if platform == "Windows":
...@@ -32,7 +33,6 @@ Mounts a file system on a system path""" ...@@ -32,7 +33,6 @@ Mounts a file system on a system path"""
return optparse return optparse
def do_run(self, options, args): def do_run(self, options, args):
windows = platform == "Windows" windows = platform == "Windows"
...@@ -84,7 +84,7 @@ Mounts a file system on a system path""" ...@@ -84,7 +84,7 @@ Mounts a file system on a system path"""
fs, path = self.open_fs(fs_url, create_dir=True) fs, path = self.open_fs(fs_url, create_dir=True)
if path: if path:
if not fs.isdir(path): if not fs.isdir(path):
self.error('%s is not a directory on %s' % (fs_url. fs)) self.error('%s is not a directory on %s' % (fs_url, fs))
return 1 return 1
fs = fs.opendir(path) fs = fs.opendir(path)
path = '/' path = '/'
...@@ -130,11 +130,10 @@ Mounts a file system on a system path""" ...@@ -130,11 +130,10 @@ Mounts a file system on a system path"""
mount_path, mount_path,
foreground=True) foreground=True)
else: else:
fs.close = lambda:None fs.close = lambda: None
def run(): def run():
return FSMount().run() return FSMount().run()
if __name__ == "__main__": if __name__ == "__main__":
sys.exit(run()) sys.exit(run())
\ No newline at end of file
...@@ -59,17 +59,17 @@ class S3FS(FS): ...@@ -59,17 +59,17 @@ class S3FS(FS):
or flushed. or flushed.
""" """
_meta = { 'thread_safe' : True, _meta = {'thread_safe': True,
'virtual': False, 'virtual': False,
'read_only' : False, 'read_only': False,
'unicode_paths' : True, 'unicode_paths': True,
'case_insensitive_paths' : False, 'case_insensitive_paths': False,
'network' : True, 'network': True,
'atomic.move' : True, 'atomic.move': True,
'atomic.copy' : True, 'atomic.copy': True,
'atomic.makedir' : True, 'atomic.makedir': True,
'atomic.rename' : False, 'atomic.rename': False,
'atomic.setconetns' : True 'atomic.setcontent': True
} }
class meta: class meta:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment