diff --git a/CHANGELOG.md b/CHANGELOG.md index 069bee1b..0f9ac33d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,7 +18,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/). - Fixed typing issues - Fixed link namespace returning bytes - Fixed broken FSURL in windows [#329](https://github.com/PyFilesystem/pyfilesystem2/issues/329) -- Fixed hidden exception at fs.close() when opening an absent zip/tar file URL [#33](https://github.com/PyFilesystem/pyfilesystem2/issues/333) +- Fixed hidden exception at fs.close() when opening an absent zip/tar file URL [#333](https://github.com/PyFilesystem/pyfilesystem2/issues/333) ## [2.4.10] - 2019-07-29 diff --git a/fs/osfs.py b/fs/osfs.py index 54fb2409..8782551a 100644 --- a/fs/osfs.py +++ b/fs/osfs.py @@ -586,7 +586,7 @@ def geturl(self, path, purpose="download"): # type: (Text, Text) -> Text sys_path = self.getsyspath(path) if purpose == "download": - return "file://" + self.getsyspath(path) + return "file://" + sys_path elif purpose == "fs": url_path = url_quote(sys_path) return "osfs://" + url_path