From 2e5b9b37a9c0a3d57659bb229fdc839b77fca442 Mon Sep 17 00:00:00 2001 From: Miguel Jacq Date: Tue, 2 Jan 2018 09:45:56 +1100 Subject: [PATCH] 4096 byte dir check is not consistent across platforms, remove it for now --- onionshare/__init__.py | 3 --- onionshare_gui/__init__.py | 3 --- 2 files changed, 6 deletions(-) diff --git a/onionshare/__init__.py b/onionshare/__init__.py index 4b64d420..705ecc79 100644 --- a/onionshare/__init__.py +++ b/onionshare/__init__.py @@ -74,9 +74,6 @@ def main(cwd=None): if not os.access(filename, os.R_OK): print(strings._("not_a_readable_file").format(filename)) valid = False - if os.path.isdir(filename) and os.path.getsize(filename) < 4096: - print(strings._("not_a_file").format(filename)) - valid = False if not valid: sys.exit() diff --git a/onionshare_gui/__init__.py b/onionshare_gui/__init__.py index 9d105f6a..14c76617 100644 --- a/onionshare_gui/__init__.py +++ b/onionshare_gui/__init__.py @@ -97,9 +97,6 @@ def main(): if not os.access(filename, os.R_OK): Alert(strings._("not_a_readable_file", True).format(filename)) valid = False - if os.path.isdir(filename) and os.path.getsize(filename) < 4096: - Alert(strings._("not_a_file", True).format(filename)) - valid = False if not valid: sys.exit()