mirror of
https://github.com/onionshare/onionshare.git
synced 2025-07-31 18:38:57 -04:00
4096 byte dir check is not consistent across platforms, remove it for now
This commit is contained in:
parent
4079704be5
commit
d6677060af
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):
|
if not os.access(filename, os.R_OK):
|
||||||
print(strings._("not_a_readable_file").format(filename))
|
print(strings._("not_a_readable_file").format(filename))
|
||||||
valid = False
|
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:
|
if not valid:
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
|
|
|
@ -97,9 +97,6 @@ def main():
|
||||||
if not os.access(filename, os.R_OK):
|
if not os.access(filename, os.R_OK):
|
||||||
Alert(strings._("not_a_readable_file", True).format(filename))
|
Alert(strings._("not_a_readable_file", True).format(filename))
|
||||||
valid = False
|
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:
|
if not valid:
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue