コード例 #1
0
        public void Unlink()
        {
            if (!Directory.DirectoryExists(""))
            {
                throw new InvalidOperationException($"Directory '{Directory.PhysicalPath}' does not exist");
            }

            if (!IsInitialized)
            {
                throw new InvalidOperationException($"The target directory '{Directory.PhysicalPath}' is not linked to any remote repository");
            }

            ParseStateFile();

            Directory.DeleteDirectory(databaseDirectory);
        }