|
|
|
|
|
fCopyFileWebFolder (Function) In french: fCopieFichierRépertoireWeb Copies an image file from the data directory of application (or from one of its sub-directories) to the "_WEB" directory of application (or to one of its sub-directories). Caution: To use this function, make sure the "Allow the fCopyFileWebFolder and fDeleteFileWebFolder functions" option is checked in the "Advanced" tab of the WEBDEV administrator. fCopyFileWebFolder("ImageTemporaire.png", "images/produit.png")
Syntax
<Result> = fCopyFileWebFolder(<Source file> , <Destination file>)
<Result>: Boolean - True if the file was copied,
- False otherwise.
<Source file>: Character string File to copy. This parameter can correspond to: - A name of file with its full path.
- A name of file with its path relative to the data directory of the application. The data directory of the application is returned by fDataDir.
<Destination file>: Character string Destination file of the copy. This parameter can correspond to: - A name of file with its full path.
- A name of file with its path relative to the "_WEB" directory of the application. The "_WEB" directory of the application is returned by fWebDir.
Remarks - fCopyFileWebFolder copies one file at a time.
- Wildcard characters (*,?) are not allowed in the file name.
- Only the image file can be copied (the accepted extensions are jpg, jpeg, png, gif, bmp, tif, tiff and svg).
- If the destination directory is a subdirectory of the "_WEB" directory, this subdirectory is created if it does not exist.
- Note: The copy is handled by the WEBDEV administrator on the server (WD300ADMIN.EXE). The Windows account running it must have sufficient rights to the target location of the copy.
- If the site is deployed on a WEBDEV Cluster, the file is copied only to the current node.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|