IPS-LMU / emuR

The main R package for the EMU Speech Database Management System (EMU-SDMS)
http://ips-lmu.github.io/EMU.html
23 stars 15 forks source link

add_ssffTrackDefinition() doesn't overwrite existing files even when told to #265

Open kirbyj opened 1 year ago

kirbyj commented 1 year ago
> path2ae = file.path(tmpdir(), "emuR_demoData", "ae_emuDB")
> ae = load_emuDB(path2ae, verbose = F)
> remove_ssffTrackDefinition(ae, "fm", deleteFiles = FALSE)
> add_ssffTrackDefinition(ae, "fm", onTheFlyFunctionName = "forest")
There are files present in 'ae' that have the file extention 'fms'! Continuing will overwrite these files! Do you wish to proceed? (y/n) y

... nothing happens. However:

> remove_ssffTrackDefinition(ae, "fm", deleteFiles = TRUE)
> add_ssffTrackDefinition(ae, "fm", onTheFlyFunctionName = "forest")

  INFO: applying forest to 7 files
  |===========================================================================================================| 100%

Shouldn't answering y when asked if it's OK to overwrite the existing files trigger the same behaviour?