Commit 24bae94e by willmcgugan@gmail.com

Fix for exception message

parent c8f36c66
......@@ -8,6 +8,7 @@ import os.path
platform = platform.system()
class FSMount(Command):
if platform == "Windows":
......@@ -32,7 +33,6 @@ Mounts a file system on a system path"""
return optparse
def do_run(self, options, args):
windows = platform == "Windows"
......@@ -84,7 +84,7 @@ Mounts a file system on a system path"""
fs, path = self.open_fs(fs_url, create_dir=True)
if 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
fs = fs.opendir(path)
path = '/'
......@@ -130,11 +130,10 @@ Mounts a file system on a system path"""
mount_path,
foreground=True)
else:
fs.close = lambda:None
fs.close = lambda: None
def run():
return FSMount().run()
if __name__ == "__main__":
sys.exit(run())
\ No newline at end of file
......@@ -59,17 +59,17 @@ class S3FS(FS):
or flushed.
"""
_meta = { 'thread_safe' : True,
_meta = {'thread_safe': True,
'virtual': False,
'read_only' : False,
'unicode_paths' : True,
'case_insensitive_paths' : False,
'network' : True,
'atomic.move' : True,
'atomic.copy' : True,
'atomic.makedir' : True,
'atomic.rename' : False,
'atomic.setconetns' : True
'read_only': False,
'unicode_paths': True,
'case_insensitive_paths': False,
'network': True,
'atomic.move': True,
'atomic.copy': True,
'atomic.makedir': True,
'atomic.rename': False,
'atomic.setcontent': True
}
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