mirror of
https://github.com/onionshare/onionshare.git
synced 2025-04-15 05:13:11 -04:00
4096 byte dir check is not consistent across platforms, remove it for now
This commit is contained in:
parent
4079704be5
commit
d6677060af
@ -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…
x
Reference in New Issue
Block a user