Ejemplo n.º 1
0
        /// <summary>
        /// Creates a directory and all parent directories if they don't already exist.
        /// Returns true (1) on successful creation or if the directory already exists.
        /// The directory is only readable by the current user. 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>
        public static bool CreateDirectory(string fullPath)
        {
            var call = new CfxRuntimeCreateDirectoryRemoteCall();

            call.fullPath = fullPath;
            call.RequestExecution();
            return(call.__retval);
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Creates a directory and all parent directories if they don't already exist.
        /// Returns true (1) on successful creation or if the directory already exists.
        /// The directory is only readable by the current user. 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>
        public static bool CreateDirectory(string fullPath)
        {
            var connection = CfxRemoteCallContext.CurrentContext.connection;
            var call       = new CfxRuntimeCreateDirectoryRemoteCall();

            call.fullPath = fullPath;
            call.RequestExecution(connection);
            return(call.__retval);
        }