Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
This routine is available starting with SIL Engine™ 1.0.
Info
titleAvailability
Table plus
applyColStyleToCelltrue
heading0
columnTypess,s,s,s
multiplefalse
columnAttributesstyle="background:#e5e7ea;font-weight:bold,,style="background:#e5e7ea;font-weight:bold,
enableSortingfalse

Syntax

fileCopy(path_to_source, path_to_destination)

Package

file

Alias

...

Pkg Usage

copy(

...

path_to_source, path_to_destination)

Description

Excerpt
hiddentrue
Copy a file from one location to another.

Copy a file from one location to another. Returns "true" if the file was copied successfully and "false" otherwise. If "false" is returned check the log for a detailed reason on why it failed.

Parameters

Table plus
applyColStyleToCelltrue
columnTypess,s,s,s
heading0
multiplefalse
enableSortingfalse

Parameter name

Type

Required

Description

path_to_source

...

String

Yes

Specifies the source file name.

path_to_destination

...

String

Yes

Specifies the destination file name.

Return

...

Type

boolean Boolean (true/false)

Example

Code Block
fileCopy("C:/source.txt", "C:/destination.txt");

Returns 'true' if the source.txt file was copied to the the destination.txt txt file.

...

Note

It is recommended that you use forward slashes ( / ) for file paths.

See also

Filter by label (Content by label)
showLabelsfalse
max25
showSpacefalse
cqllabel = "file_routines" and space = currentSpace ( )
labelsfilearray_routines