-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
3,774 additions
and
1,026 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
<Project Sdk="Microsoft.NET.Sdk"> | ||
|
||
<PropertyGroup> | ||
<TargetFramework>net6.0</TargetFramework> | ||
<ImplicitUsings>enable</ImplicitUsings> | ||
<Nullable>enable</Nullable> | ||
<GenerateDocumentationFile>True</GenerateDocumentationFile> | ||
<OutputPath>..\..\lib</OutputPath> | ||
</PropertyGroup> | ||
|
||
<ItemGroup> | ||
<PackageReference Include="VL.Core" Version="2023.5.3-0349-g416621bccc" /> | ||
</ItemGroup> | ||
|
||
<ItemGroup> | ||
<Using Include="VL.Core" /> | ||
<Using Include="VL.Core.Import" /> | ||
<Using Include="VL.Lib.Collections" /> | ||
<Using Include="Stride.Core.Mathematics" /> | ||
</ItemGroup> | ||
|
||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio Version 17 | ||
VisualStudioVersion = 17.5.33627.172 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "DeleteFolders.Utils", "DeleteFolders.Utils.csproj", "{2D49C869-16CC-4CEE-BD66-347DEF4476D8}" | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{2D49C869-16CC-4CEE-BD66-347DEF4476D8}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{2D49C869-16CC-4CEE-BD66-347DEF4476D8}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{2D49C869-16CC-4CEE-BD66-347DEF4476D8}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{2D49C869-16CC-4CEE-BD66-347DEF4476D8}.Release|Any CPU.Build.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
GlobalSection(ExtensibilityGlobals) = postSolution | ||
SolutionGuid = {7156CF9C-A279-468E-83BD-97E77D6404BE} | ||
EndGlobalSection | ||
EndGlobal |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
using System; | ||
using System.Collections.Generic; | ||
using System.Linq; | ||
using System.Text; | ||
using System.Threading.Tasks; | ||
|
||
namespace DeleteFolders.Utils | ||
{ | ||
public class DeleteProgress | ||
{ | ||
public string CurrentFolder { get; set; } | ||
public int FilesDeleted { get; set; } | ||
public int TotalFiles { get; set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<configuration> | ||
<packageSources> | ||
<clear /> | ||
<add key="nuget.org" value="https://api.nuget.org/v3/index.json" /> | ||
<add key="vvvv-public-feed" value="https://teamcity.vvvv.org/guestAuth/app/nuget/v1/FeedService.svc/" /> | ||
</packageSources> | ||
</configuration> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
using VL.Core.Import; | ||
|
||
[assembly: ImportAsIs] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
using DeleteFolders.Utils; | ||
using System; | ||
using System.IO; | ||
using System.Linq; | ||
using System.Reactive.Linq; | ||
|
||
namespace DeleteFolders.Utils | ||
{ | ||
public class Utils | ||
{ | ||
public static void DeleteFoldersRecursively(Spread<string> folders) | ||
{ | ||
foreach (var folder in folders) | ||
{ | ||
if (Directory.Exists(folder)) | ||
{ | ||
DeleteFolder(folder); | ||
} | ||
} | ||
} | ||
|
||
private static async Task DeleteFolder(string folder) | ||
{ | ||
var files = Directory.GetFiles(folder, "*", SearchOption.AllDirectories); | ||
|
||
|
||
foreach (var file in files) | ||
{ | ||
File.Delete(file); | ||
} | ||
|
||
var directories = new DirectoryInfo(folder).GetDirectories(); | ||
foreach (var dir in directories) | ||
{ | ||
Directory.Delete(dir.FullName, true); | ||
} | ||
|
||
Directory.Delete(folder, false); | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters