schmod
schmod( path, mode )
Changes a files or directory permissions.
Returns 1 if sucessful, 0 if fails
- path = fully qualified path to the file
- mode_number = ( nnnn decimal number) or '0nnnn' (octal string)
|
scopy
scopy( source, destination )
Copies a file in the scripts directory.
Returns 1 if sucessful, 0 if fails
- source = source file fully qualified path
- destination = destination file fully qualified path
|
sdelete
sdelete( path )
Deletes a file in the scripts directory. See See fdelete()
Returns 1 if sucessful, 0 if fails
- path = fully qualified path of the file to delete
|
sexists
sexists( path )
Tests if the file named in path exists in the scripts directory.
Returns 1 if the file exsists else 0.
- path = the fully qualified path to the file.
|
sfcopy
sfcopy( source, destination )
Appends data to the end of the file in path.
Returns length of outputdata or 0 if fails.
- path = fully qualified path to the file
- location = location of the output file - 'data' or 'script'
- outputdata = string variable containing the data to append
|
sfrename
sfrename( source, destination )
Rename source file to destination file. Can rename or move a file in the scripts directory.
Returns 1 if sucessful, 0 if fails
- source = source file fully qualified path
- destination = destination file fully qualified path
|
sisdir
sisdir( path )
Tests if the file named in path is a directory.
Returns 1 if the path is a directory else 0.
- path = the fully qualified path to the directory
|
smkdir
smkdir( path )
Creates a directory specified by path in the scripts directory.
Returns 1 if sucessful, 0 if fails
- path = the fully qualified path to the directory
|
smode
smode( path )
Returns the permissions mode of path in the scripts directory.
Returns the permissions mode or -1 if the file does not exist
- path = the fully qualified path to the file or directory
|
srename
srename( source, destination )
Rename source file to destination file. Can rename or move a file in the scripts directory.
Returns 1 if sucessful, 0 if fails
- source = source file fully qualified path
- destination = destination file fully qualified path
|
ssize
ssize( path )
Get the size of a file in the scripts directory
Returns the file size in bytes or -1 if the file does not exist.
- path = the fully qualified path to the file
|
ssymlink
ssymlink( source, destination )
(Unix only) Creates a symbolic link to the file in the scripts directory.
Returns 1 if sucessful, 0 if fails
- source = source file fully qualified path
- destination = destination file fully qualified path
|
stime
stime( path )
Gets the last modified time for the file in scripts directory.
Returns time_t since a file in the was last modified or -1 if the file does not exist.
- path = the fully qualified path to the file
|
miva_template_compile
miva_template_compile( signat, source var, sourceitems var, target, errors var )
Compiles the contents of a string into a template file where sig = Any text. The md5 hash value of this text will be stored in the MVC file, source = The source to compile into a template file, items = array of valid item names. The compiler will return
|