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()