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 9154faf351
commit 2e5b9b37a9
No known key found for this signature in database
GPG key ID: EEA4341C6D97A0B6
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()