diff options
Diffstat (limited to 'fuse-httpfs.py')
-rwxr-xr-x | fuse-httpfs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/fuse-httpfs.py b/fuse-httpfs.py index e4b38b2..7bb5a5e 100755 --- a/fuse-httpfs.py +++ b/fuse-httpfs.py @@ -82,9 +82,9 @@ class File(Path): if r.status_code == 200 or r.status_code == 206: d = r.content logging.info("Received {} bytes".format(len(d))) - if len(d) <= size: + if len(d) > size: errormsg = "size {} > than expected {}".format(len(d), size) - logger.error(errormsg) + logging.error(errormsg) raise fuse.FuseOSError(EIO) return d else: |