Can remove file if already exists? inside script

Any questions? Need some help?
Post Reply
FCazs
Posts: 4
Joined: 13 Dec 2015, 15:45

Can remove file if already exists? inside script

Post 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?
User avatar
rednoah
The Source
Posts: 24018
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

Re: Can remove file if already exists? inside script

Post 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]
:idea: Please read the FAQ and How to Request Help.
Post Reply