UA ANSI C Server Professional  1.4.2.297
 All Data Structures Functions Variables Typedefs Enumerations Enumerator Modules Pages
UaServerFilesystem

Macros

#define UASERVER_SUCCESS   0
 The operation succeeded.
 
#define UASERVER_EEXIST   EEXIST
 Directory already exists.
 
#define UASERVER_ENOENT   ENOENT
 One of the path components was not found.
 
#define UASERVER_EACCES   EACCES
 Access is denied.
 
#define UASERVER_EFAIL   EFAULT
 Generic error code.
 

Functions

OpcUa_Int UaServer_Mkdir (const OpcUa_CharA *a_Pathname)
 Create a directory. More...
 
OpcUa_Int UaServer_MkPath (const char *szPath)
 Create a directory and its parent directories if needed. More...
 
char * UaServer_DirName (char *szPath)
 Returns the directory name of szPath which is the string up to, but not including, the final '/'. More...
 
char * UaServer_BaseName (char *szPath)
 Returns the string component following the final '/' of szPath. More...
 

Detailed Description

Function Documentation

char * UaServer_BaseName ( char *  szPath)

Returns the string component following the final '/' of szPath.

This function may modify szPath, so it may be desirable to pass a copy when calling this function.

char * UaServer_DirName ( char *  szPath)

Returns the directory name of szPath which is the string up to, but not including, the final '/'.

This function may modify szPath, so it may be desirable to pass a copy when calling this function. If szPath does not contain a '/' the string '.' will be returned.

OpcUa_Int UaServer_Mkdir ( const OpcUa_CharA *  a_Pathname)

Create a directory.

Parameters
a_PathnameThe name of the directory to create.
Returns
One of the result codes defined in uaserver_p_filesystem.h
OpcUa_Int UaServer_MkPath ( const char *  szPath)

Create a directory and its parent directories if needed.

Parameters
szPathThe name of the directory to create.
Returns
One of the result codes defined in uaserver_p_filesystem.h