libdsm  0.4.3
Minimalist and read-only SMB client lib
Functions
smb_dir.h File Reference

Directory operations. More...

#include "bdsm/smb_session.h"

Functions

BDSM_EXPORT int smb_directory_rm (smb_session *s, smb_tid tid, const char *path)
 remove a directory on a share. More...
 
BDSM_EXPORT int smb_directory_create (smb_session *s, smb_tid tid, const char *path)
 create a directory on a share. More...
 

Detailed Description

Directory operations.

Function Documentation

BDSM_EXPORT int smb_directory_create ( smb_session s,
smb_tid  tid,
const char *  path 
)

create a directory on a share.

Use this function to create a directory

Parameters
sThe session object
tidThe tid of the share the file is in, obtained via smb_tree_connect()
pathThe path of the directory to create
Returns
0 on success or a DSM error code in case of error
BDSM_EXPORT int smb_directory_rm ( smb_session s,
smb_tid  tid,
const char *  path 
)

remove a directory on a share.

Use this function to delete an empty directory

Parameters
sThe session object
tidThe tid of the share the file is in, obtained via smb_tree_connect()
pathThe path of the file to delete
Returns
0 on success or a DSM error code in case of error