Android_UEFIInstaller.BasicInstaller.cleanup C# (CSharp) Method

cleanup() protected method

protected cleanup ( String directory ) : bool
directory String
return bool
        protected virtual bool cleanup(String directory)
        {
            Log.write("-Cleaning up Android Directory ... " + directory);
            try
            {
                //Check if Directory Exist
                if (Directory.Exists(directory))
                {
                   Directory.Delete(directory, true);
                }

                return true;
            }
            catch (Exception ex)
            {
                Log.write("Exception: " + ex.Message);
                return false;
            }
        }