Chapter 35. filesyslib
Table of Contents
- copyfile()
- createdirectory()
- createpath()
- deletefile()
- deletefileold()
- fileexists()
- fileexists_old()
- filenameparse()
- getcurrentdirectory()
- getdefaultnewline()
- getdirectorysepchar()
- getenvironmentvariable()
- getpublicdatadir()
- gettempfilename()
- gettemppath()
- getu32frominteger()
- getuserhomedir()
- getwindowssysdir()
- issamefilename()
- iswindows_os()
- notrailingdirsep()
- setcurrentdirectory()
- trailingdirsep()
This library is provided to add functionality in a cross-platform way for working with file systems. It provides functions like getcurrentdirectory(), getdirectorysepchar(), filenameparse(), fileexists(), deletefile(), and others.
copyfile()
Description
Prototype
copyfile
(
string
,
string fromfile
,
boolean tofile
,
integer replace
)
error
Parameters
Parameter | Default value | Type name | Description |
---|---|---|---|
fromfile | None | string | |
tofile | None | string | |
replace | .false | boolean | |
error | None | integer |