fchmod
fchmod( 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)
|
fcopy
fcopy( source, destination )
Copies a file in the data directory.
Returns 1 if sucessful, 0 if fails
- source = source file fully qualified path
- destination = destination file fully qualified path
|
fdelete
fdelete( path )
Deletes a file in the data directory. See sdelete()
Returns 1 if sucessful, 0 if fails
- path = fully qualified path of the file to delete
|
fexists
fexists( path )
Tests if the file named in path exists in the data directory.
Returns 1 if the file exsists else 0.
- path = the fully qualified path to the file
|
file_append
file_append( path, location, outputdata var )
Appends data to the end of the file in path.
Returns length of outputdata or -1 on error. file_append() will not create a file, but return -1 if the file does not exist.
- path = fully qualified path to the file
- location = location of the output file - 'data' or 'script'
- outputdata = string variable containing the data to append
|
file_create
file_create( path, location, outputdata var )
Creates and appends data to the file in path.
Returns length of outputdata or -1 on error. file_create() will not append to an existing file, but return -1 if the file exists.
- path = fully qualified path to the file
- location = location of the output file - 'data' or 'script'
- outputdata = string variable containing the data to append
|
file_read
file_read( path, location, inputdata var )
Reads a file.
Returns length of inputdata or -1 on error or file does not exist.
- path = fully qualified path to the file
- location = location of the input file - 'data' or 'script'
- inputdata = string variable containing the data read
|
fisdir
fisdir( 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
|
fmkdir
fmkdir( path )
Creates a directory specified by path in the data directory.
Returns 1 if sucessful, 0 if fails
- path = the fully qualified path to the directory
|
fmode
fmode( path )
Returns the permissions mode of path in the data directory.
Returns the permissions mode or -1 if the file does not exist
- path = the fully qualified path to the file or directory
|
frename
frename( source, destination )
Rename source file to destination file. Can rename or move a file in the data directory.
Returns 1 if sucessful, 0 if fails
- source = source file fully qualified path
- destination = destination file fully qualified path
|
fscopy
fscopy( data_source,script_destination )
Copies a file from data directory to the scripts directory.
Returns 1 if sucessful, 0 if fails
- data_source = source file fully qualified path
- scripts_destination = destination file fully qualified path
|
fsize
fsize( path )
Get the size of a file in the data directory
Returns the file size in bytes or -1 if the file does not exist.
- path = the fully qualified path to the file
|
fsrename
fsrename( source, destination )
Rename data directory source file to script directory destination file. Can rename or move a file.
Returns 1 if sucessful, 0 if fails
- source = source file fully qualified path
- destination = destination file fully qualified path
|
fsymlink
fsymlink( source, destination )
(Unix only) Creates a symbolic link to the file in the data directory.
Returns 1 if sucessful, 0 if fails
- source = source file fully qualified path
- destination = destination file fully qualified path
|
ftime
ftime( path )
Gets the last modified time for the file in data 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_lockfile
miva_lockfile( path, location )
Creates and locks a lockfile. Similar to the behavior of MvLOCKFILE without the closing /MvLOCKFILE behavior. It also creates the exact filename, rather than appending ".lck" to the filename as MvLOCKFILE does.
Returns 1 if sucessful, -1 if fails
- path = fully qualified path to the file
- location = location of the file - 'data' or 'script'
- Use fdelete() or sdelete() to delete the lockfile.
|
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
|