mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-25 13:07:17 +00:00
remove file by extension (#636)
This commit is contained in:
parent
bf836996ed
commit
1b5dd96e17
@ -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()))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user