wiki:Docs/Prog/Manual/ApplicationLibraries/lib825ev/File/MountDirectory

Version 1 (modified by Don Wilson, 7 months ago) ( diff )

--

MountDirectory

Mount to a share

bool MountDirectory(const char* dev, const char* mountPath, const char* options, const char* type = NULL);
bool MountDirectory(string& strDev, string& strMountPath, string& strOptions, const char* type = NULL);
bool MountDirectory(string& strDev, string& strMountPath, const char* options, const char* type = NULL);
bool MountDirectory(const char* dev, string& strMountPath, const char* options, const char* type = NULL);

Parameters

  • path -

Return Value

  • Returns true if successful

Remarks

Examples

if(MountDirectory("/dev/sda1", "/run/media/sda1", "umask=0007,gid=6") == true) {
  printf("Mounted successfully");
}

See Also

Note: See TracWiki for help on using the wiki.