OverwriteTarget

OverwriteTarget

is an option for functions like CopyFile that specifies whether to overwrite if target files already exist.

Details

  • Typical settings include:
  • Automaticautomatic settings
    Falseoperation fails if it needs to overwrite existing content
    Trueoverwrite existing content

Examples

Basic Examples  (1)

Create a file:

Copy the file to a new location:

Copying the file back fails with OverwriteTarget->False:

Use OverwriteTarget->True to overwrite the existing file:

Wolfram Research (2016), OverwriteTarget, Wolfram Language function, https://reference.wolfram.com/language/ref/OverwriteTarget.html.

Text

Wolfram Research (2016), OverwriteTarget, Wolfram Language function, https://reference.wolfram.com/language/ref/OverwriteTarget.html.

CMS

Wolfram Language. 2016. "OverwriteTarget." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/OverwriteTarget.html.

APA

Wolfram Language. (2016). OverwriteTarget. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/OverwriteTarget.html

BibTeX

@misc{reference.wolfram_2022_overwritetarget, author="Wolfram Research", title="{OverwriteTarget}", year="2016", howpublished="\url{https://reference.wolfram.com/language/ref/OverwriteTarget.html}", note=[Accessed: 03-December-2022 ]}

BibLaTeX

@online{reference.wolfram_2022_overwritetarget, organization={Wolfram Research}, title={OverwriteTarget}, year={2016}, url={https://reference.wolfram.com/language/ref/OverwriteTarget.html}, note=[Accessed: 03-December-2022 ]}