diff --git a/c#/Program.cs b/c#/Program.cs new file mode 100644 index 0000000..83fa4f4 --- /dev/null +++ b/c#/Program.cs @@ -0,0 +1,2 @@ +// See https://aka.ms/new-console-template for more information +Console.WriteLine("Hello, World!"); diff --git a/c#/bin/Debug/net8.0/c# b/c#/bin/Debug/net8.0/c# new file mode 100755 index 0000000..ea227f8 Binary files /dev/null and b/c#/bin/Debug/net8.0/c# differ diff --git a/c#/bin/Debug/net8.0/c#.deps.json b/c#/bin/Debug/net8.0/c#.deps.json new file mode 100644 index 0000000..497bdb2 --- /dev/null +++ b/c#/bin/Debug/net8.0/c#.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v8.0", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v8.0": { + "c#/1.0.0": { + "runtime": { + "c#.dll": {} + } + } + } + }, + "libraries": { + "c#/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/c#/bin/Debug/net8.0/c#.dll b/c#/bin/Debug/net8.0/c#.dll new file mode 100644 index 0000000..d6c946b Binary files /dev/null and b/c#/bin/Debug/net8.0/c#.dll differ diff --git a/c#/bin/Debug/net8.0/c#.pdb b/c#/bin/Debug/net8.0/c#.pdb new file mode 100644 index 0000000..f4cccea Binary files /dev/null and b/c#/bin/Debug/net8.0/c#.pdb differ diff --git a/c#/bin/Debug/net8.0/c#.runtimeconfig.json b/c#/bin/Debug/net8.0/c#.runtimeconfig.json new file mode 100644 index 0000000..becfaea --- /dev/null +++ b/c#/bin/Debug/net8.0/c#.runtimeconfig.json @@ -0,0 +1,12 @@ +{ + "runtimeOptions": { + "tfm": "net8.0", + "framework": { + "name": "Microsoft.NETCore.App", + "version": "8.0.0" + }, + "configProperties": { + "System.Runtime.Serialization.EnableUnsafeBinaryFormatterSerialization": false + } + } +} \ No newline at end of file diff --git a/c#/c#.csproj b/c#/c#.csproj new file mode 100644 index 0000000..65f17c4 --- /dev/null +++ b/c#/c#.csproj @@ -0,0 +1,11 @@ + + + + Exe + net8.0 + c_ + enable + enable + + + diff --git a/c#/functions.cs b/c#/functions.cs index 486252e..64f0c64 100644 --- a/c#/functions.cs +++ b/c#/functions.cs @@ -12,7 +12,7 @@ bool exists(string tidyPath){ } } bool isFolder(string tidyPath){ - return Directory.Exists(string tidyPath); + return Directory.Exists(tidyPath); } bool isFile(string tidyPath){ return File.Exists(tidyPath); @@ -23,7 +23,7 @@ bool delete(string tidyPath){ Directory.Delete(tidyPath, true); return true; } - catch(Exception e){ + catch{ return false; } } @@ -32,7 +32,7 @@ bool delete(string tidyPath){ File.Delete(tidyPath); return true; } - catch(Exception z){ + catch{ return false; } } @@ -43,7 +43,7 @@ bool createFile(string tidyPath){ File.Create(tidyPath); return true; } - catch(Exception e){ + catch{ return false; } } @@ -52,7 +52,7 @@ bool createFolder(string tidyPath){ Directory.CreateDirectory(tidyPath); return true; } - catch(Exception e){ + catch{ return false; } } @@ -63,7 +63,7 @@ bool clear(string tidyPath){ Directory.CreateDirectory(tidyPath); return true; } - catch(Exception e){ + catch{ return false; } } @@ -73,7 +73,7 @@ bool clear(string tidyPath){ File.Create(tidyPath); return true; } - catch(Exception e){ + catch{ return false; } } @@ -86,9 +86,9 @@ long sizeDirectory(DirectoryInfo tidyInfoHere){ tidyNumReturn += f.Length; } foreach(DirectoryInfo infoIsHere in tidyInfoHere.GetDirectories()){ - tidyNumReturn += this.sizeDirectory(infoIsHere) + tidyNumReturn += this.sizeDirectory(infoIsHere); } - return tidyNumReturn + return tidyNumReturn; } long size(string tidyPath){ if(this.isFile(tidyPath)){ diff --git a/c#/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs b/c#/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs new file mode 100644 index 0000000..dca70aa --- /dev/null +++ b/c#/obj/Debug/net8.0/.NETCoreApp,Version=v8.0.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v8.0", FrameworkDisplayName = ".NET 8.0")] diff --git a/c#/obj/Debug/net8.0/apphost b/c#/obj/Debug/net8.0/apphost new file mode 100755 index 0000000..ea227f8 Binary files /dev/null and b/c#/obj/Debug/net8.0/apphost differ diff --git a/c#/obj/Debug/net8.0/c#.AssemblyInfo.cs b/c#/obj/Debug/net8.0/c#.AssemblyInfo.cs new file mode 100644 index 0000000..6067375 --- /dev/null +++ b/c#/obj/Debug/net8.0/c#.AssemblyInfo.cs @@ -0,0 +1,22 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("c#")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0+c97f2c31e10e0882184ae28af9f5834953937464")] +[assembly: System.Reflection.AssemblyProductAttribute("c#")] +[assembly: System.Reflection.AssemblyTitleAttribute("c#")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Generated by the MSBuild WriteCodeFragment class. + diff --git a/c#/obj/Debug/net8.0/c#.AssemblyInfoInputs.cache b/c#/obj/Debug/net8.0/c#.AssemblyInfoInputs.cache new file mode 100644 index 0000000..f410bc0 --- /dev/null +++ b/c#/obj/Debug/net8.0/c#.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +bb1dd660cd1394c0e75fc06474ad024746ea3f10763dc30ebe7bd7118561a721 diff --git a/c#/obj/Debug/net8.0/c#.GeneratedMSBuildEditorConfig.editorconfig b/c#/obj/Debug/net8.0/c#.GeneratedMSBuildEditorConfig.editorconfig new file mode 100644 index 0000000..2418737 --- /dev/null +++ b/c#/obj/Debug/net8.0/c#.GeneratedMSBuildEditorConfig.editorconfig @@ -0,0 +1,13 @@ +is_global = true +build_property.TargetFramework = net8.0 +build_property.TargetPlatformMinVersion = +build_property.UsingMicrosoftNETSdkWeb = +build_property.ProjectTypeGuids = +build_property.InvariantGlobalization = +build_property.PlatformNeutralAssembly = +build_property.EnforceExtendedAnalyzerRules = +build_property._SupportedPlatformList = Linux,macOS,Windows +build_property.RootNamespace = c_ +build_property.ProjectDir = /workspaces/TidyOpenFileManagementLibrary/c#/ +build_property.EnableComHosting = +build_property.EnableGeneratedComInterfaceComImportInterop = diff --git a/c#/obj/Debug/net8.0/c#.GlobalUsings.g.cs b/c#/obj/Debug/net8.0/c#.GlobalUsings.g.cs new file mode 100644 index 0000000..8578f3d --- /dev/null +++ b/c#/obj/Debug/net8.0/c#.GlobalUsings.g.cs @@ -0,0 +1,8 @@ +// +global using global::System; +global using global::System.Collections.Generic; +global using global::System.IO; +global using global::System.Linq; +global using global::System.Net.Http; +global using global::System.Threading; +global using global::System.Threading.Tasks; diff --git a/c#/obj/Debug/net8.0/c#.assets.cache b/c#/obj/Debug/net8.0/c#.assets.cache new file mode 100644 index 0000000..d2a066b Binary files /dev/null and b/c#/obj/Debug/net8.0/c#.assets.cache differ diff --git a/c#/obj/Debug/net8.0/c#.csproj.CoreCompileInputs.cache b/c#/obj/Debug/net8.0/c#.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..2835c55 --- /dev/null +++ b/c#/obj/Debug/net8.0/c#.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +fdd346999b015fc51c65a7eadfe7a323235eca5a825560a7b7015b541d160e31 diff --git a/c#/obj/Debug/net8.0/c#.csproj.FileListAbsolute.txt b/c#/obj/Debug/net8.0/c#.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..1f08c0e --- /dev/null +++ b/c#/obj/Debug/net8.0/c#.csproj.FileListAbsolute.txt @@ -0,0 +1,15 @@ +/workspaces/TidyOpenFileManagementLibrary/c#/obj/Debug/net8.0/c#.GeneratedMSBuildEditorConfig.editorconfig +/workspaces/TidyOpenFileManagementLibrary/c#/obj/Debug/net8.0/c#.AssemblyInfoInputs.cache +/workspaces/TidyOpenFileManagementLibrary/c#/obj/Debug/net8.0/c#.AssemblyInfo.cs +/workspaces/TidyOpenFileManagementLibrary/c#/obj/Debug/net8.0/c#.csproj.CoreCompileInputs.cache +/workspaces/TidyOpenFileManagementLibrary/c#/obj/Debug/net8.0/c#.sourcelink.json +/workspaces/TidyOpenFileManagementLibrary/c#/bin/Debug/net8.0/c# +/workspaces/TidyOpenFileManagementLibrary/c#/bin/Debug/net8.0/c#.deps.json +/workspaces/TidyOpenFileManagementLibrary/c#/bin/Debug/net8.0/c#.runtimeconfig.json +/workspaces/TidyOpenFileManagementLibrary/c#/bin/Debug/net8.0/c#.dll +/workspaces/TidyOpenFileManagementLibrary/c#/bin/Debug/net8.0/c#.pdb +/workspaces/TidyOpenFileManagementLibrary/c#/obj/Debug/net8.0/c#.dll +/workspaces/TidyOpenFileManagementLibrary/c#/obj/Debug/net8.0/refint/c#.dll +/workspaces/TidyOpenFileManagementLibrary/c#/obj/Debug/net8.0/c#.pdb +/workspaces/TidyOpenFileManagementLibrary/c#/obj/Debug/net8.0/c#.genruntimeconfig.cache +/workspaces/TidyOpenFileManagementLibrary/c#/obj/Debug/net8.0/ref/c#.dll diff --git a/c#/obj/Debug/net8.0/c#.dll b/c#/obj/Debug/net8.0/c#.dll new file mode 100644 index 0000000..d6c946b Binary files /dev/null and b/c#/obj/Debug/net8.0/c#.dll differ diff --git a/c#/obj/Debug/net8.0/c#.genruntimeconfig.cache b/c#/obj/Debug/net8.0/c#.genruntimeconfig.cache new file mode 100644 index 0000000..3a246b9 --- /dev/null +++ b/c#/obj/Debug/net8.0/c#.genruntimeconfig.cache @@ -0,0 +1 @@ +8fa670709e1830d281faf33e35b24769c71fb11192b8b5da2450c46402b2ce50 diff --git a/c#/obj/Debug/net8.0/c#.pdb b/c#/obj/Debug/net8.0/c#.pdb new file mode 100644 index 0000000..f4cccea Binary files /dev/null and b/c#/obj/Debug/net8.0/c#.pdb differ diff --git a/c#/obj/Debug/net8.0/c#.sourcelink.json b/c#/obj/Debug/net8.0/c#.sourcelink.json new file mode 100644 index 0000000..f17e19a --- /dev/null +++ b/c#/obj/Debug/net8.0/c#.sourcelink.json @@ -0,0 +1 @@ +{"documents":{"/workspaces/TidyOpenFileManagementLibrary/*":"https://raw.githubusercontent.com/Tidy-Coder/TidyOpenFileManagementLibrary/c97f2c31e10e0882184ae28af9f5834953937464/*"}} \ No newline at end of file diff --git a/c#/obj/Debug/net8.0/ref/c#.dll b/c#/obj/Debug/net8.0/ref/c#.dll new file mode 100644 index 0000000..255851c Binary files /dev/null and b/c#/obj/Debug/net8.0/ref/c#.dll differ diff --git a/c#/obj/Debug/net8.0/refint/c#.dll b/c#/obj/Debug/net8.0/refint/c#.dll new file mode 100644 index 0000000..255851c Binary files /dev/null and b/c#/obj/Debug/net8.0/refint/c#.dll differ diff --git a/c#/obj/c#.csproj.nuget.dgspec.json b/c#/obj/c#.csproj.nuget.dgspec.json new file mode 100644 index 0000000..77955d4 --- /dev/null +++ b/c#/obj/c#.csproj.nuget.dgspec.json @@ -0,0 +1,66 @@ +{ + "format": 1, + "restore": { + "/workspaces/TidyOpenFileManagementLibrary/c#/c#.csproj": {} + }, + "projects": { + "/workspaces/TidyOpenFileManagementLibrary/c#/c#.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "/workspaces/TidyOpenFileManagementLibrary/c#/c#.csproj", + "projectName": "c#", + "projectPath": "/workspaces/TidyOpenFileManagementLibrary/c#/c#.csproj", + "packagesPath": "/home/codespace/.nuget/packages/", + "outputPath": "/workspaces/TidyOpenFileManagementLibrary/c#/obj/", + "projectStyle": "PackageReference", + "configFilePaths": [ + "/home/codespace/.nuget/NuGet/NuGet.Config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "direct" + } + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/8.0.303/PortableRuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/c#/obj/c#.csproj.nuget.g.props b/c#/obj/c#.csproj.nuget.g.props new file mode 100644 index 0000000..0648942 --- /dev/null +++ b/c#/obj/c#.csproj.nuget.g.props @@ -0,0 +1,15 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + /home/codespace/.nuget/packages/ + /home/codespace/.nuget/packages/ + PackageReference + 6.10.0 + + + + + \ No newline at end of file diff --git a/c#/obj/c#.csproj.nuget.g.targets b/c#/obj/c#.csproj.nuget.g.targets new file mode 100644 index 0000000..3dc06ef --- /dev/null +++ b/c#/obj/c#.csproj.nuget.g.targets @@ -0,0 +1,2 @@ + + \ No newline at end of file diff --git a/c#/obj/project.assets.json b/c#/obj/project.assets.json new file mode 100644 index 0000000..3d2e267 --- /dev/null +++ b/c#/obj/project.assets.json @@ -0,0 +1,71 @@ +{ + "version": 3, + "targets": { + "net8.0": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + "net8.0": [] + }, + "packageFolders": { + "/home/codespace/.nuget/packages/": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "/workspaces/TidyOpenFileManagementLibrary/c#/c#.csproj", + "projectName": "c#", + "projectPath": "/workspaces/TidyOpenFileManagementLibrary/c#/c#.csproj", + "packagesPath": "/home/codespace/.nuget/packages/", + "outputPath": "/workspaces/TidyOpenFileManagementLibrary/c#/obj/", + "projectStyle": "PackageReference", + "configFilePaths": [ + "/home/codespace/.nuget/NuGet/NuGet.Config" + ], + "originalTargetFrameworks": [ + "net8.0" + ], + "sources": { + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + }, + "restoreAuditProperties": { + "enableAudit": "true", + "auditLevel": "low", + "auditMode": "direct" + } + }, + "frameworks": { + "net8.0": { + "targetAlias": "net8.0", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48", + "net481" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "/usr/share/dotnet/sdk/8.0.303/PortableRuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/c#/obj/project.nuget.cache b/c#/obj/project.nuget.cache new file mode 100644 index 0000000..4029005 --- /dev/null +++ b/c#/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "4E3mwDbxWOo=", + "success": true, + "projectFilePath": "/workspaces/TidyOpenFileManagementLibrary/c#/c#.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file