mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-25 10:42:58 -03:00
4096 byte dir check is not consistent across platforms, remove it for now
This commit is contained in:
parent
9154faf351
commit
2e5b9b37a9
2 changed files with 0 additions and 6 deletions
|
@ -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()
|
||||
|
||||
|
|
|
@ -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()
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue