ChromiumFX/Generated/Remote/CfrRuntime.cs
/// <summary>
/// Deletes the given path whether it's a file or a directory. If |path| is a
/// directory all contents will be deleted.  If |recursive| is true (1) any sub-
/// directories and their contents will also be deleted (equivalent to executing
/// "rm -rf", so use with caution). On POSIX environments if |path| is a symbolic
/// link then only the symlink will be deleted. Returns true (1) on successful
/// deletion or if |path| does not exist. Calling this function on the browser
/// process UI or IO threads is not allowed.
/// </summary>
/// <remarks>
/// See also the original CEF documentation in
/// <see href="https://bitbucket.org/chromiumfx/chromiumfx/src/tip/cef/include/capi/cef_file_util_capi.h">cef/include/capi/cef_file_util_capi.h</see>.
/// </remarks>
Deletes the given path whether it's a file or a directory. If |path| is a
directory all contents will be deleted.  If |recursive| is true (1) any sub
directories and their contents will also be deleted (equivalent to executing
"rm -rf", so use with caution). On POSIX environments if |path| is a symbolic
link then only the symlink will be deleted. Returns true (1) on successful
deletion or if |path| does not exist. Calling this function on the browser
process UI or IO threads is not allowed.
Deletes the given path whether it ' s a file or a directory . If |path| is a directory all contents will be deleted . If |recursive| is true ( 1 ) any sub directories and their contents will also be deleted ( equivalent to executing " rm - rf " so use with caution ) . On POSIX environments if |path| is a symbolic link then only the symlink will be deleted . Returns true ( 1 ) on successful deletion or if |path| does not exist . Calling this function on the browser process UI or IO threads is not allowed .
public static bool DeleteFile(string path, bool recursive) {
            var connection = CfxRemoteCallContext.CurrentContext.connection;
            var call = new CfxRuntimeDeleteFileRemoteCall();
            call.path = path;
            call.recursive = recursive;
            call.RequestExecution(connection);
            return call.__retval;
        }
public static bool DeleteFile ( string path , bool recursive ) { var connection = CfxRemoteCallContext . CurrentContext . connection ; var call = new CfxRuntimeDeleteFileRemoteCall ( ) ; call . path = path ; call . recursive = recursive ; call . RequestExecution ( connection ) ; return call . __retval ; }
Deletes the given path whether it's a file or a directory.
Deletes the given path whether it ' s a file or a directory .
path
string
recursive
bool
remarks
See also the original CEF documentation in
cef/include/capi/cef_file_util_capi.h
See also the original CEF documentation in cef / include / capi / cef_file_util_capi . h