| | 1 | = MountDirectory = |
| | 2 | Mount to a share |
| | 3 | |
| | 4 | {{{ |
| | 5 | bool MountDirectory(const char* dev, const char* mountPath, const char* options, const char* type = NULL); |
| | 6 | bool MountDirectory(string& strDev, string& strMountPath, string& strOptions, const char* type = NULL); |
| | 7 | bool MountDirectory(string& strDev, string& strMountPath, const char* options, const char* type = NULL); |
| | 8 | bool MountDirectory(const char* dev, string& strMountPath, const char* options, const char* type = NULL); |
| | 9 | }}} |
| | 10 | |
| | 11 | == Parameters == |
| | 12 | |
| | 13 | * path - |
| | 14 | |
| | 15 | == Return Value == |
| | 16 | |
| | 17 | * Returns true if successful |
| | 18 | |
| | 19 | == Remarks == |
| | 20 | |
| | 21 | |
| | 22 | == Examples == |
| | 23 | |
| | 24 | {{{ |
| | 25 | if(MountDirectory("/dev/sda1", "/run/media/sda1", "umask=0007,gid=6") == true) { |
| | 26 | printf("Mounted successfully"); |
| | 27 | } |
| | 28 | }}} |
| | 29 | |
| | 30 | |
| | 31 | == See Also == |
| | 32 | |
| | 33 | |