Example #1
0
        private async Task <bool> _commandPwdAsync()
        {
            if (!HomePath.NullEmpty())
            {
                return(true);
            }

            storeResponse = true;
            if (await executeCommandAsync("PWD") == 257)
            {
                try
                {
                    string path = tmpResponsed.Split('"')[1].Trim();
                    tmpResponsed = null;

                    if (!path.NullEmpty())
                    {
                        PathHelper.AddEndningSlash(ref path);
                        BrowsedPath = HomePath = path;
                        return(true);
                    }
                }
                catch (Exception exp) { ExceptionHelper.Log(exp); }
            }

            return(false);
        }