remove file by extension (#636)

This commit is contained in:
Alex Sharov 2022-09-12 12:37:53 +07:00 committed by GitHub
parent bf836996ed
commit 1b5dd96e17
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -65,7 +65,7 @@ func DeleteFilesOfType(dir string, exts ...string) {
for _, ext := range exts {
if filepath.Ext(file.Name()) == ext {
_ = os.Remove(file.Name())
_ = os.Remove(filepath.Join(dir, file.Name()))
}
}
}