diff --git a/.idea/.idea.OneDriveArchiver/.idea/contentModel.xml b/.idea/.idea.OneDriveArchiver/.idea/contentModel.xml index f36428f..95c63ba 100644 --- a/.idea/.idea.OneDriveArchiver/.idea/contentModel.xml +++ b/.idea/.idea.OneDriveArchiver/.idea/contentModel.xml @@ -1,8 +1,8 @@ - - + + diff --git a/.idea/.idea.OneDriveArchiver/.idea/modules.xml b/.idea/.idea.OneDriveArchiver/.idea/modules.xml index 6df5c7c..526d03b 100644 --- a/.idea/.idea.OneDriveArchiver/.idea/modules.xml +++ b/.idea/.idea.OneDriveArchiver/.idea/modules.xml @@ -2,7 +2,7 @@ - + \ No newline at end of file diff --git a/.idea/.idea.OneDriveArchiver/.idea/riderModule.iml b/.idea/.idea.OneDriveArchiver/.idea/riderModule.iml new file mode 100644 index 0000000..1a4e0d9 --- /dev/null +++ b/.idea/.idea.OneDriveArchiver/.idea/riderModule.iml @@ -0,0 +1,7 @@ + + + + + + + \ No newline at end of file diff --git a/.idea/.idea.OneDriveArchiver/.idea/workspace.xml b/.idea/.idea.OneDriveArchiver/.idea/workspace.xml index 18b8597..acb35d8 100644 --- a/.idea/.idea.OneDriveArchiver/.idea/workspace.xml +++ b/.idea/.idea.OneDriveArchiver/.idea/workspace.xml @@ -23,758 +23,16 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -877,6 +127,9 @@ + + + 1597346544727 @@ -1018,186 +271,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - diff --git a/OneDriveArchiver/IoHelper.cs b/OneDriveArchiver/IoHelper.cs index 428e75b..93147cf 100644 --- a/OneDriveArchiver/IoHelper.cs +++ b/OneDriveArchiver/IoHelper.cs @@ -116,40 +116,33 @@ namespace OneDriveArchiver // process the files in the directory (if all directories have been traversed... var filesToProcess = Directory.GetFiles(currentDirectoryWithFiles); - if (filesToProcess.Length > 1) + if (filesToProcess.Length <= 1) return; + foreach (var item in filesToProcess) { - foreach (var item in filesToProcess) + Console.WriteLine($"{appName}: Processing file {item}..."); + + // skip ourselves... + if (item.ToLower().Contains("onedrivearchiver")) { - Console.WriteLine($"{appName}: Processing file {item}..."); - - // skip ourselves... - if (item.ToLower().Contains("onedrivearchiver")) - { - Console.WriteLine( - $"{appName}: Skipping processing of my own executable. Proceeding..."); - continue; - } - - // we do not archive desktop.ini either... - if (item.ToLower().Contains("desktop.ini")) - { - Console.WriteLine($"{appName}: skipping desktop.ini file..."); - continue; - } - - // archive the file - ArchiveOneDriveFile(appName, targetPath,item); - - // increment number of processed files - ProcessedFiles += 1; - - Console.WriteLine($"{appName}: Processing for file {item} completed successfully."); + Console.WriteLine( + $"{appName}: Skipping processing of my own executable. Proceeding..."); + continue; } - } - else - { - // no files found... - Console.WriteLine($"{appName}: No files found to process."); + + // we do not archive desktop.ini either... + if (item.ToLower().Contains("desktop.ini")) + { + Console.WriteLine($"{appName}: skipping desktop.ini file..."); + continue; + } + + // archive the file + ArchiveOneDriveFile(appName, targetPath,item); + + // increment number of processed files + ProcessedFiles += 1; + + Console.WriteLine($"{appName}: Processing for file {item} completed successfully."); } } #endregion diff --git a/OneDriveArchiver/obj/Debug/net5.0/OneDriveArchiver.assets.cache b/OneDriveArchiver/obj/Debug/net5.0/OneDriveArchiver.assets.cache index 7d579ca..d4ec59e 100644 Binary files a/OneDriveArchiver/obj/Debug/net5.0/OneDriveArchiver.assets.cache and b/OneDriveArchiver/obj/Debug/net5.0/OneDriveArchiver.assets.cache differ diff --git a/OneDriveArchiver/obj/Debug/net5.0/OneDriveArchiver.csprojAssemblyReference.cache b/OneDriveArchiver/obj/Debug/net5.0/OneDriveArchiver.csprojAssemblyReference.cache index 5dd98cd..a3ea238 100644 Binary files a/OneDriveArchiver/obj/Debug/net5.0/OneDriveArchiver.csprojAssemblyReference.cache and b/OneDriveArchiver/obj/Debug/net5.0/OneDriveArchiver.csprojAssemblyReference.cache differ diff --git a/OneDriveArchiver/obj/OneDriveArchiver.csproj.nuget.dgspec.json b/OneDriveArchiver/obj/OneDriveArchiver.csproj.nuget.dgspec.json index 09e1762..038980c 100644 --- a/OneDriveArchiver/obj/OneDriveArchiver.csproj.nuget.dgspec.json +++ b/OneDriveArchiver/obj/OneDriveArchiver.csproj.nuget.dgspec.json @@ -47,31 +47,12 @@ ], "assetTargetFallback": true, "warn": true, - "downloadDependencies": [ - { - "name": "Microsoft.AspNetCore.App.Runtime.win-x64", - "version": "[5.0.0, 5.0.0]" - }, - { - "name": "Microsoft.NETCore.App.Runtime.win-x64", - "version": "[5.0.0, 5.0.0]" - }, - { - "name": "Microsoft.WindowsDesktop.App.Runtime.win-x64", - "version": "[5.0.0, 5.0.0]" - } - ], "frameworkReferences": { "Microsoft.NETCore.App": { "privateAssets": "all" } }, - "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.100\\RuntimeIdentifierGraph.json" - } - }, - "runtimes": { - "win-x64": { - "#import": [] + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.101\\RuntimeIdentifierGraph.json" } } } diff --git a/OneDriveArchiver/obj/project.assets.json b/OneDriveArchiver/obj/project.assets.json index 3ade45c..5a1f8d4 100644 --- a/OneDriveArchiver/obj/project.assets.json +++ b/OneDriveArchiver/obj/project.assets.json @@ -1,8 +1,7 @@ { "version": 3, "targets": { - "net5.0": {}, - "net5.0/win-x64": {} + "net5.0": {} }, "libraries": {}, "projectFileDependencyGroups": { @@ -54,31 +53,12 @@ ], "assetTargetFallback": true, "warn": true, - "downloadDependencies": [ - { - "name": "Microsoft.AspNetCore.App.Runtime.win-x64", - "version": "[5.0.0, 5.0.0]" - }, - { - "name": "Microsoft.NETCore.App.Runtime.win-x64", - "version": "[5.0.0, 5.0.0]" - }, - { - "name": "Microsoft.WindowsDesktop.App.Runtime.win-x64", - "version": "[5.0.0, 5.0.0]" - } - ], "frameworkReferences": { "Microsoft.NETCore.App": { "privateAssets": "all" } }, - "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.100\\RuntimeIdentifierGraph.json" - } - }, - "runtimes": { - "win-x64": { - "#import": [] + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.101\\RuntimeIdentifierGraph.json" } } } diff --git a/OneDriveArchiver/obj/project.nuget.cache b/OneDriveArchiver/obj/project.nuget.cache index a68eba9..f0efe61 100644 --- a/OneDriveArchiver/obj/project.nuget.cache +++ b/OneDriveArchiver/obj/project.nuget.cache @@ -1,12 +1,8 @@ { "version": 2, - "dgSpecHash": "eKgYvXPQIHR6gbPKbmKEs2upD1JG4+rWD98QiIUWGRxgTYmK4tp9ESZuc5j3NJxlS7vmLi4yziU4RWMUmBn8CA==", + "dgSpecHash": "bZREPX/mDBRhrGaLgCesA+B1UvWBxGFX8ncJNaXpLqeocuJ28ZkSGlqbUL1KCnHLZLJaeJ++aZ3aoMieaEp1Zw==", "success": true, "projectFilePath": "C:\\Users\\johan\\OneDrive\\DEV\\OneDriveArchiver\\OneDriveArchiver\\OneDriveArchiver.csproj", - "expectedPackageFiles": [ - "C:\\Users\\johan\\.nuget\\packages\\microsoft.netcore.app.runtime.win-x64\\5.0.0\\microsoft.netcore.app.runtime.win-x64.5.0.0.nupkg.sha512", - "C:\\Users\\johan\\.nuget\\packages\\microsoft.windowsdesktop.app.runtime.win-x64\\5.0.0\\microsoft.windowsdesktop.app.runtime.win-x64.5.0.0.nupkg.sha512", - "C:\\Users\\johan\\.nuget\\packages\\microsoft.aspnetcore.app.runtime.win-x64\\5.0.0\\microsoft.aspnetcore.app.runtime.win-x64.5.0.0.nupkg.sha512" - ], + "expectedPackageFiles": [], "logs": [] } \ No newline at end of file diff --git a/OneDriveArchiver/obj/project.packagespec.json b/OneDriveArchiver/obj/project.packagespec.json index 1547b6c..519588f 100644 --- a/OneDriveArchiver/obj/project.packagespec.json +++ b/OneDriveArchiver/obj/project.packagespec.json @@ -1,46 +1 @@ -{ - "version": "1.0.0", - "restore": { - "projectUniqueName": "C:\\Users\\johan\\OneDrive\\DEV\\OneDriveArchiver\\OneDriveArchiver\\OneDriveArchiver.csproj", - "projectName": "OneDriveArchiver", - "projectPath": "C:\\Users\\johan\\OneDrive\\DEV\\OneDriveArchiver\\OneDriveArchiver\\OneDriveArchiver.csproj", - "outputPath": "C:\\Users\\johan\\OneDrive\\DEV\\OneDriveArchiver\\OneDriveArchiver\\obj\\", - "projectStyle": "PackageReference", - "originalTargetFrameworks": [ - "net50" - ], - "sources": { - "https://api.nuget.org/v3/index.json": {} - }, - "frameworks": { - "netcoreapp5.0": { - "projectReferences": {} - } - }, - "warningProperties": { - "warnAsError": [ - "NU1605" - ] - } - }, - "frameworks": { - "netcoreapp5.0": { - "imports": [ - "net461", - "net462", - "net47", - "net471", - "net472", - "net48" - ], - "assetTargetFallback": true, - "warn": true, - "frameworkReferences": { - "Microsoft.NETCore.App": { - "privateAssets": "all" - } - }, - "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.100\\RuntimeIdentifierGraph.json" - } - } -} \ No newline at end of file +"version":"1.0.0","restore":{"projectUniqueName":"C:\\Users\\johan\\OneDrive\\DEV\\OneDriveArchiver\\OneDriveArchiver\\OneDriveArchiver.csproj","projectName":"OneDriveArchiver","projectPath":"C:\\Users\\johan\\OneDrive\\DEV\\OneDriveArchiver\\OneDriveArchiver\\OneDriveArchiver.csproj","outputPath":"C:\\Users\\johan\\OneDrive\\DEV\\OneDriveArchiver\\OneDriveArchiver\\obj\\","projectStyle":"PackageReference","originalTargetFrameworks":["net5.0"],"sources":{"https://api.nuget.org/v3/index.json":{}},"frameworks":{"net5.0":{"targetAlias":"net5.0","projectReferences":{}}},"warningProperties":{"warnAsError":["NU1605"]}}"frameworks":{"net5.0":{"targetAlias":"net5.0","imports":["net461","net462","net47","net471","net472","net48"],"assetTargetFallback":true,"warn":true,"frameworkReferences":{"Microsoft.NETCore.App":{"privateAssets":"all"}},"runtimeIdentifierGraphPath":"C:\\Program Files\\dotnet\\sdk\\5.0.101\\RuntimeIdentifierGraph.json"}} \ No newline at end of file diff --git a/OneDriveArchiver/obj/rider.project.restore.info b/OneDriveArchiver/obj/rider.project.restore.info index e5f8af6..175ed1a 100644 --- a/OneDriveArchiver/obj/rider.project.restore.info +++ b/OneDriveArchiver/obj/rider.project.restore.info @@ -1 +1 @@ -16033657965930032 \ No newline at end of file +16079790981888593 \ No newline at end of file