4096 byte dir check is not consistent across platforms, remove it for now

This commit is contained in:
Miguel Jacq 2018-01-02 09:45:56 +11:00
parent 4079704be5
commit d6677060af
2 changed files with 0 additions and 6 deletions

View File

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

View File

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