char *append(const char* URL, const char *string, bool interpretDirs = true)


Method Description

Use this function to append a string to a URL. '.' and '..' can be interpreted, and the URL returned will always be a valid URL.

URL is the base URL.

string is the string to append to the base URL.

interpretDirs should be set to true (default) if you want the library to interpret "." and ".." as special directories.

A syntactically valid URL will be returned, though it might not point to anything!

Unlike the previous versions of libsmb, the resulting pointer is now the property of the library so you should not delete it.

See also :

Parser for smb URLs. It can interpret "." and ".." as subdirectories, and query for hosts/workgroups.
void parse(const char *name, bool interpretDirs = true)

Does the opposite of the parser
char *buildURL(const char* user=0, const char* password=0, const char* workgroup=0, const char *host=0, const char* share=0, const char* path=0, const char* ip=0)

Stats a file/directory. URLs are accepted. Works as its standard equivalent.
int stat(const char *filename, struct stat *buf)


Copyright © Nicolas Brodu, 1999 - 2000