Skip to content

Commit

Permalink
fix for geturl
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Nov 26, 2016
1 parent 9df9dd2 commit 8216ff7
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion fs/mountfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ def geturl(self, path, purpose='download'):
def hasurl(self, path, purpose='download'):
self.check()
fs, _path = self._delegate(path)
return fs.hasurl(_path, purpose='download')
return fs.hasurl(_path, purpose=purpose)

def isdir(self, path):
self.check()
Expand Down
2 changes: 1 addition & 1 deletion fs/multifs.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,7 @@ def hassyspath(self, path):
def hasurl(self, path, purpose='download'):
self.check()
fs = self._delegate_required(path)
return fs.hasurl(path, purpose='download')
return fs.hasurl(path, purpose=purpose)

def isdir(self, path):
self.check()
Expand Down
4 changes: 2 additions & 2 deletions fs/wrapfs.py
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,7 @@ def geturl(self, path, purpose='download'):
self.check()
_fs, _path = self.delegate_path(path)
with unwrap_errors(path):
return _fs.geturl(_path, purpose='download')
return _fs.geturl(_path, purpose=purpose)

def hassyspath(self, path):
self.check()
Expand All @@ -294,7 +294,7 @@ def hasurl(self, path, purpose='download'):
self.check()
_fs, _path = self.delegate_path(path)
with unwrap_errors(path):
has_url = _fs.hasurl(_path, purpose='download')
has_url = _fs.hasurl(_path, purpose=purpose)
return has_url

def isdir(self, path):
Expand Down

0 comments on commit 8216ff7

Please sign in to comment.