Mono Class Library: Mono.Unix.Native.Stdlib Overview | Members

Mono.Unix.Native.Stdlib.remove Method

Remove a directory entry. [Edit]

public static int remove (string filename)

Parameters

filename
Documentation for this section has not yet been entered. [Edit]

Returns

The remove() function returns the value 0 if successful; otherwise the value -1 is returned and Stdlib.GetLastError indicates the error. [Edit]

Remarks

The remove() function removes the file or directory specified by path.

If path specifies a directory, remove(path) is the equivalent of Syscall.rmdir(path). Otherwise, it is the equivalent of Syscall.unlink(path).

[Edit]

Requirements

Namespace: Mono.Unix.Native
Assembly: Mono.Posix (in Mono.Posix.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0