Page 1 of 1

Can remove file if already exists? inside script

Posted: 18 Aug 2016, 11:56
by FCazs
Can script remove file if exists?
Example if have:

Code: Select all

Fetching episode data for [Vikings (2012)]
Skipped [D:\Downloads\Complete\Shows\Vikingos - Temporada 4 [HDTV 720p][Cap.409][AC3 5.1 Espa�ol Castellano]\Vikingos - Temporada 4 [Cap.409].mkv] because [D:\Media\TV Shows\Vikingos\Season 04\Vikingos - S04E09 - La muerte alrededor.mkv] already exists
Delete this file, i can?

Re: Can remove file if already exists? inside script

Posted: 18 Aug 2016, 18:28
by rednoah
The --conflict option gives you various options on how to deal with conflicts. The default is skip.

Code: Select all

--conflict [skip, override, auto, index, fail]