www.openlinksw.com
docs.openlinksw.com

Book Home

Contents
Preface

Virtuoso Functions Guide

Administration
Aggregate Functions
Array Manipulation
BPEL APIs
Backup
Compression
Cursor
Date & Time Manipulation
Debug
Dictionary Manipulation
Encoding & Decoding
File Manipulation
file_delete
file_dirlist
file_mkdir
file_mkpath
file_stat
file_to_string
file_to_string_outpu...
file_unlink
os_chmod
os_chown
Free Text
Hashing / Cryptographic
LDAP
Locale
Mail
Miscellaneous
Number
Remote SQL Data Source
Replication
SOAP
SQL
String
Transaction
Type Mapping
UDDI
User Defined Types & The CLR
Virtuoso Java PL API
Virtuoso Server Extension Interface (VSEI)
Web Server & Internet
XML
XPATH & XQUERY

Functions Index

file_mkpath

Make a directory chain
file_mkpath (in path varchar, [inout istest integer]);
Description

This function requires dba privileges.

This is to create a directory chain i.e. 'a/b/c/d', where one or more elements in the path may not exist.

Parameters
path – string containing file system path to be crated as directory chain
istest – Variable for returning the error message. If specified, errors are not signalled.
Return Types

On success returns zero.

Errors
SQLState Error Code Error Text Description
42000 FA014 Access to %s is denied due to access control in ini file
42000 FA015 Access to %s is denied due to access control in ini file
42000 FA116 Abnormally long path is passed as argument to sys_mkpath()

See Also

file_unlink file_delete file_mkdir file_mkpath file_stat