salopensource / sal-scripts

Apache License 2.0
23 stars 31 forks source link

.DS_Store causing iterdir to barf #82

Closed grahamgilbert closed 4 years ago

grahamgilbert commented 4 years ago
2020-09-24 17:02:07,137 DEBUG /usr/local/sal/external_scripts/Encryption/encryption.py ran successfuly.
Traceback (most recent call last):
  File "/usr/local/sal/bin/sal-submit", line 359, in <module>
    main()
  File "/usr/local/sal/bin/sal-submit", line 55, in main
    run_plugins(run_type)
  File "/usr/local/sal/bin/sal-submit", line 130, in run_plugins
    run_external_scripts(run_type)
  File "/usr/local/sal/bin/sal-submit", line 142, in run_external_scripts
    for script in folder.iterdir():
  File "/usr/local/sal/Python.framework/Versions/3.8/lib/python3.8/pathlib.py", line 1118, in iterdir
    for name in self._accessor.listdir(self):
NotADirectoryError: [Errno 20] Not a directory: '/usr/local/sal/external_scripts/.DS_Store'