Exemple #1
0
        /// <summary>
        /// Returns true (1) if the given path exists and is a directory. 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 DirectoryExists(string path)
        {
            var call = new CfxRuntimeDirectoryExistsRemoteCall();

            call.path = path;
            call.RequestExecution();
            return(call.__retval);
        }
Exemple #2
0
        /// <summary>
        /// Returns true (1) if the given path exists and is a directory. 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 DirectoryExists(string path)
        {
            var connection = CfxRemoteCallContext.CurrentContext.connection;
            var call       = new CfxRuntimeDirectoryExistsRemoteCall();

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