You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Description file.tidied may throw FileNotFoundError during iteration over the return of the os.walk call if another process moves or deletes a file between when the listing is created and the getatime (or similiar) call attempts to determine the file timestamp.
FileNotFoundError: [Errno 2] No such file or directory: '/tmp/pytest-of-nmhughes/pytest-10/test_tidied_filenotfound0/not_found_test/test1/file1'
Expected behavior
Since the outcome of file.tidied would delete a file, we shouldn't get upset if someone else does the job for us.
Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)
Salt Version:
Salt: 3005.1Dependency Versions:
cffi: Not Installedcherrypy: Not Installeddateutil: Not Installeddocker-py: Not Installedgitdb: Not Installedgitpython: Not InstalledJinja2: 3.1.2libgit2: Not InstalledM2Crypto: Not InstalledMako: Not Installedmsgpack: 1.0.4msgpack-pure: Not Installedmysql-python: Not Installedpycparser: Not Installedpycrypto: 2.6.1pycryptodome: 3.15.0pygit2: Not InstalledPython: 3.7.3 (default, Jan 22 2021, 20:04:44)python-gnupg: Not InstalledPyYAML: 6.0PyZMQ: 24.0.1smmap: Not Installedtimelib: Not InstalledTornado: 4.5.3ZMQ: 4.3.4System Versions:
dist: debian 10 busterlocale: UTF-8machine: x86_64release: 4.19.0-22-amd64system: Linuxversion: Debian GNU/Linux 10 buster
The text was updated successfully, but these errors were encountered:
Description
file.tidied
may throwFileNotFoundError
during iteration over the return of theos.walk
call if another process moves or deletes a file between when the listing is created and thegetatime
(or similiar) call attempts to determine the file timestamp.Expected behavior
Since the outcome of
file.tidied
would delete a file, we shouldn't get upset if someone else does the job for us.Versions Report
salt --versions-report
(Provided by running salt --versions-report. Please also mention any differences in master/minion versions.)The text was updated successfully, but these errors were encountered: