Did small changes in comments plus some small optimizations...

This commit is contained in:
2020-10-07 14:29:20 +02:00
parent 262c7a5058
commit e45c34f148
16 changed files with 105 additions and 123 deletions

View File

@@ -23,31 +23,21 @@
</component> </component>
<component name="ChangeListManager"> <component name="ChangeListManager">
<list default="true" id="29ab5463-4b97-401d-ab54-0cf6c10d440f" name="Default Changelist" comment="Small update using appName in archive method"> <list default="true" id="29ab5463-4b97-401d-ab54-0cf6c10d440f" name="Default Changelist" comment="Small update using appName in archive method">
<change beforePath="$PROJECT_DIR$/.idea/.idea.OneDriveArchiver/.idea/contentModel.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/.idea.OneDriveArchiver/.idea/contentModel.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/.idea/.idea.OneDriveArchiver/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/.idea.OneDriveArchiver/.idea/workspace.xml" afterDir="false" /> <change beforePath="$PROJECT_DIR$/.idea/.idea.OneDriveArchiver/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/.idea.OneDriveArchiver/.idea/workspace.xml" afterDir="false" />
<change beforePath="$PROJECT_DIR$/OneDriveArchiver/IoHelper.cs" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/IoHelper.cs" afterDir="false" /> <change beforePath="$PROJECT_DIR$/OneDriveArchiver/IoHelper.cs" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/IoHelper.cs" afterDir="false" />
<change beforePath="$PROJECT_DIR$/OneDriveArchiver/OneDriveArchiver.csproj" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/OneDriveArchiver.csproj" afterDir="false" />
<change beforePath="$PROJECT_DIR$/OneDriveArchiver/Program.cs" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/Program.cs" afterDir="false" /> <change beforePath="$PROJECT_DIR$/OneDriveArchiver/Program.cs" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/Program.cs" afterDir="false" />
<change beforePath="$PROJECT_DIR$/OneDriveArchiver/bin/Debug/netcoreapp3.1/OneDriveArchiver.dll" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/bin/Debug/netcoreapp3.1/OneDriveArchiver.dll" afterDir="false" />
<change beforePath="$PROJECT_DIR$/OneDriveArchiver/bin/Debug/netcoreapp3.1/OneDriveArchiver.pdb" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/bin/Debug/netcoreapp3.1/OneDriveArchiver.pdb" afterDir="false" />
<change beforePath="$PROJECT_DIR$/OneDriveArchiver/bin/Release/netcoreapp3.1/OneDriveArchiver.dll" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/bin/Release/netcoreapp3.1/OneDriveArchiver.dll" afterDir="false" />
<change beforePath="$PROJECT_DIR$/OneDriveArchiver/bin/Release/netcoreapp3.1/OneDriveArchiver.pdb" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/bin/Release/netcoreapp3.1/OneDriveArchiver.pdb" afterDir="false" />
<change beforePath="$PROJECT_DIR$/OneDriveArchiver/bin/Release/netcoreapp3.1/win-x64/OneDriveArchiver.dll" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/bin/Release/netcoreapp3.1/win-x64/OneDriveArchiver.dll" afterDir="false" /> <change beforePath="$PROJECT_DIR$/OneDriveArchiver/bin/Release/netcoreapp3.1/win-x64/OneDriveArchiver.dll" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/bin/Release/netcoreapp3.1/win-x64/OneDriveArchiver.dll" afterDir="false" />
<change beforePath="$PROJECT_DIR$/OneDriveArchiver/bin/Release/netcoreapp3.1/win-x64/OneDriveArchiver.pdb" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/bin/Release/netcoreapp3.1/win-x64/OneDriveArchiver.pdb" afterDir="false" /> <change beforePath="$PROJECT_DIR$/OneDriveArchiver/bin/Release/netcoreapp3.1/win-x64/OneDriveArchiver.pdb" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/bin/Release/netcoreapp3.1/win-x64/OneDriveArchiver.pdb" afterDir="false" />
<change beforePath="$PROJECT_DIR$/OneDriveArchiver/bin/Release/netcoreapp3.1/win-x64/publish/OneDriveArchiver.exe" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/bin/Release/netcoreapp3.1/win-x64/publish/OneDriveArchiver.exe" afterDir="false" /> <change beforePath="$PROJECT_DIR$/OneDriveArchiver/bin/Release/netcoreapp3.1/win-x64/publish/OneDriveArchiver.exe" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/bin/Release/netcoreapp3.1/win-x64/publish/OneDriveArchiver.exe" afterDir="false" />
<change beforePath="$PROJECT_DIR$/OneDriveArchiver/bin/Release/netcoreapp3.1/win-x64/publish/OneDriveArchiver.pdb" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/bin/Release/netcoreapp3.1/win-x64/publish/OneDriveArchiver.pdb" afterDir="false" /> <change beforePath="$PROJECT_DIR$/OneDriveArchiver/bin/Release/netcoreapp3.1/win-x64/publish/OneDriveArchiver.pdb" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/bin/Release/netcoreapp3.1/win-x64/publish/OneDriveArchiver.pdb" afterDir="false" />
<change beforePath="$PROJECT_DIR$/OneDriveArchiver/obj/Debug/netcoreapp3.1/OneDriveArchiver.AssemblyInfo.cs" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/obj/Debug/netcoreapp3.1/OneDriveArchiver.AssemblyInfo.cs" afterDir="false" />
<change beforePath="$PROJECT_DIR$/OneDriveArchiver/obj/Debug/netcoreapp3.1/OneDriveArchiver.AssemblyInfoInputs.cache" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/obj/Debug/netcoreapp3.1/OneDriveArchiver.AssemblyInfoInputs.cache" afterDir="false" />
<change beforePath="$PROJECT_DIR$/OneDriveArchiver/obj/Debug/netcoreapp3.1/OneDriveArchiver.assets.cache" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/obj/Debug/netcoreapp3.1/OneDriveArchiver.assets.cache" afterDir="false" />
<change beforePath="$PROJECT_DIR$/OneDriveArchiver/obj/Debug/netcoreapp3.1/OneDriveArchiver.csprojAssemblyReference.cache" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/obj/Debug/netcoreapp3.1/OneDriveArchiver.csprojAssemblyReference.cache" afterDir="false" /> <change beforePath="$PROJECT_DIR$/OneDriveArchiver/obj/Debug/netcoreapp3.1/OneDriveArchiver.csprojAssemblyReference.cache" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/obj/Debug/netcoreapp3.1/OneDriveArchiver.csprojAssemblyReference.cache" afterDir="false" />
<change beforePath="$PROJECT_DIR$/OneDriveArchiver/obj/Debug/netcoreapp3.1/OneDriveArchiver.dll" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/obj/Debug/netcoreapp3.1/OneDriveArchiver.dll" afterDir="false" /> <change beforePath="$PROJECT_DIR$/OneDriveArchiver/obj/OneDriveArchiver.csproj.nuget.dgspec.json" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/obj/OneDriveArchiver.csproj.nuget.dgspec.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/OneDriveArchiver/obj/Debug/netcoreapp3.1/OneDriveArchiver.pdb" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/obj/Debug/netcoreapp3.1/OneDriveArchiver.pdb" afterDir="false" /> <change beforePath="$PROJECT_DIR$/OneDriveArchiver/obj/OneDriveArchiver.csproj.nuget.g.props" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/obj/OneDriveArchiver.csproj.nuget.g.props" afterDir="false" />
<change beforePath="$PROJECT_DIR$/OneDriveArchiver/obj/Release/netcoreapp3.1/OneDriveArchiver.csprojAssemblyReference.cache" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/obj/Release/netcoreapp3.1/OneDriveArchiver.csprojAssemblyReference.cache" afterDir="false" />
<change beforePath="$PROJECT_DIR$/OneDriveArchiver/obj/Release/netcoreapp3.1/OneDriveArchiver.dll" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/obj/Release/netcoreapp3.1/OneDriveArchiver.dll" afterDir="false" />
<change beforePath="$PROJECT_DIR$/OneDriveArchiver/obj/Release/netcoreapp3.1/OneDriveArchiver.pdb" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/obj/Release/netcoreapp3.1/OneDriveArchiver.pdb" afterDir="false" />
<change beforePath="$PROJECT_DIR$/OneDriveArchiver/obj/Release/netcoreapp3.1/win-x64/OneDriveArchiver.dll" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/obj/Release/netcoreapp3.1/win-x64/OneDriveArchiver.dll" afterDir="false" /> <change beforePath="$PROJECT_DIR$/OneDriveArchiver/obj/Release/netcoreapp3.1/win-x64/OneDriveArchiver.dll" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/obj/Release/netcoreapp3.1/win-x64/OneDriveArchiver.dll" afterDir="false" />
<change beforePath="$PROJECT_DIR$/OneDriveArchiver/obj/Release/netcoreapp3.1/win-x64/OneDriveArchiver.pdb" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/obj/Release/netcoreapp3.1/win-x64/OneDriveArchiver.pdb" afterDir="false" /> <change beforePath="$PROJECT_DIR$/OneDriveArchiver/obj/Release/netcoreapp3.1/win-x64/OneDriveArchiver.pdb" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/obj/Release/netcoreapp3.1/win-x64/OneDriveArchiver.pdb" afterDir="false" />
<change beforePath="$PROJECT_DIR$/OneDriveArchiver/obj/Release/netcoreapp3.1/win-x64/linked/OneDriveArchiver.dll" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/obj/Release/netcoreapp3.1/win-x64/linked/OneDriveArchiver.dll" afterDir="false" /> <change beforePath="$PROJECT_DIR$/OneDriveArchiver/obj/Release/netcoreapp3.1/win-x64/linked/OneDriveArchiver.dll" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/obj/Release/netcoreapp3.1/win-x64/linked/OneDriveArchiver.dll" afterDir="false" />
<change beforePath="$PROJECT_DIR$/OneDriveArchiver/obj/project.assets.json" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/obj/project.assets.json" afterDir="false" />
<change beforePath="$PROJECT_DIR$/OneDriveArchiver/obj/project.nuget.cache" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/obj/project.nuget.cache" afterDir="false" />
<change beforePath="$PROJECT_DIR$/OneDriveArchiver/obj/rider.project.restore.info" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/obj/rider.project.restore.info" afterDir="false" /> <change beforePath="$PROJECT_DIR$/OneDriveArchiver/obj/rider.project.restore.info" beforeDir="false" afterPath="$PROJECT_DIR$/OneDriveArchiver/obj/rider.project.restore.info" afterDir="false" />
</list> </list>
<option name="SHOW_DIALOG" value="false" /> <option name="SHOW_DIALOG" value="false" />
@@ -135,7 +125,8 @@
<workItem from="1600685920761" duration="7288000" /> <workItem from="1600685920761" duration="7288000" />
<workItem from="1601379132086" duration="1332000" /> <workItem from="1601379132086" duration="1332000" />
<workItem from="1601560085210" duration="77000" /> <workItem from="1601560085210" duration="77000" />
<workItem from="1601560349440" duration="1435000" /> <workItem from="1601560349440" duration="2029000" />
<workItem from="1602069912686" duration="660000" />
</task> </task>
<task id="LOCAL-00001" summary="Migrated solution to .net core 3.1."> <task id="LOCAL-00001" summary="Migrated solution to .net core 3.1.">
<created>1597346544727</created> <created>1597346544727</created>
@@ -200,7 +191,28 @@
<option name="project" value="LOCAL" /> <option name="project" value="LOCAL" />
<updated>1601561929685</updated> <updated>1601561929685</updated>
</task> </task>
<option name="localTasksCounter" value="10" /> <task id="LOCAL-00010" summary="Added some more logging to make transparent how we're going to run...">
<created>1601562120750</created>
<option name="number" value="00010" />
<option name="presentableId" value="LOCAL-00010" />
<option name="project" value="LOCAL" />
<updated>1601562120750</updated>
</task>
<task id="LOCAL-00011" summary="Added some more logging to make transparent how we're going to run...">
<created>1601562133764</created>
<option name="number" value="00011" />
<option name="presentableId" value="LOCAL-00011" />
<option name="project" value="LOCAL" />
<updated>1601562133764</updated>
</task>
<task id="LOCAL-00012" summary="Added some more logging to make transparent how we're going to run...">
<created>1601562237352</created>
<option name="number" value="00012" />
<option name="presentableId" value="LOCAL-00012" />
<option name="project" value="LOCAL" />
<updated>1601562237352</updated>
</task>
<option name="localTasksCounter" value="13" />
<servers /> <servers />
</component> </component>
<component name="TypeScriptGeneratedFilesManager"> <component name="TypeScriptGeneratedFilesManager">
@@ -230,7 +242,8 @@
<MESSAGE value="Implemented recursive mode for general processing. From now on OneDriveArchiver can archive picture files recursively..." /> <MESSAGE value="Implemented recursive mode for general processing. From now on OneDriveArchiver can archive picture files recursively..." />
<MESSAGE value="Small update using appName in archive method" /> <MESSAGE value="Small update using appName in archive method" />
<MESSAGE value="Fixed an issue when using recursion. Cannot be used if the program is called via OneDriveArchiver.exe &quot;.&quot;, as it processed (recursively) the already existing backup files. Implemented logic that it checks where source and target directory really are. If equal it just does the plan processing of the files in the main directory (as before)" /> <MESSAGE value="Fixed an issue when using recursion. Cannot be used if the program is called via OneDriveArchiver.exe &quot;.&quot;, as it processed (recursively) the already existing backup files. Implemented logic that it checks where source and target directory really are. If equal it just does the plan processing of the files in the main directory (as before)" />
<option name="LAST_COMMIT_MESSAGE" value="Fixed an issue when using recursion. Cannot be used if the program is called via OneDriveArchiver.exe &quot;.&quot;, as it processed (recursively) the already existing backup files. Implemented logic that it checks where source and target directory really are. If equal it just does the plan processing of the files in the main directory (as before)" /> <MESSAGE value="Added some more logging to make transparent how we're going to run..." />
<option name="LAST_COMMIT_MESSAGE" value="Added some more logging to make transparent how we're going to run..." />
</component> </component>
<component name="WindowStateProjectService"> <component name="WindowStateProjectService">
<state x="2850" y="198" key="#com.intellij.execution.impl.EditConfigurationsDialog" timestamp="1601561619469"> <state x="2850" y="198" key="#com.intellij.execution.impl.EditConfigurationsDialog" timestamp="1601561619469">
@@ -242,124 +255,124 @@
<screen x="0" y="0" width="1664" height="1069" /> <screen x="0" y="0" width="1664" height="1069" />
</state> </state>
<state width="399" height="466" key="DebuggerActiveHint/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1597406505502" /> <state width="399" height="466" key="DebuggerActiveHint/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1597406505502" />
<state width="2005" height="295" key="GridCell.Tab.0.bottom" timestamp="1601561673714"> <state width="2005" height="295" key="GridCell.Tab.0.bottom" timestamp="1601562547211">
<screen x="2496" y="0" width="2048" height="1112" /> <screen x="2496" y="0" width="2048" height="1112" />
</state> </state>
<state width="2005" height="295" key="GridCell.Tab.0.bottom/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601561673714" /> <state width="2005" height="295" key="GridCell.Tab.0.bottom/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601562547211" />
<state width="1621" height="283" key="GridCell.Tab.0.bottom/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" /> <state width="1621" height="283" key="GridCell.Tab.0.bottom/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" />
<state width="1621" height="292" key="GridCell.Tab.0.bottom/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786589" /> <state width="1621" height="292" key="GridCell.Tab.0.bottom/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786589" />
<state width="2005" height="295" key="GridCell.Tab.0.center" timestamp="1601561673713"> <state width="2005" height="295" key="GridCell.Tab.0.center" timestamp="1601562547211">
<screen x="2496" y="0" width="2048" height="1112" /> <screen x="2496" y="0" width="2048" height="1112" />
</state> </state>
<state width="2005" height="295" key="GridCell.Tab.0.center/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601561673713" /> <state width="2005" height="295" key="GridCell.Tab.0.center/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601562547211" />
<state width="1621" height="283" key="GridCell.Tab.0.center/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796478" /> <state width="1621" height="283" key="GridCell.Tab.0.center/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796478" />
<state width="1621" height="292" key="GridCell.Tab.0.center/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786589" /> <state width="1621" height="292" key="GridCell.Tab.0.center/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786589" />
<state width="2005" height="295" key="GridCell.Tab.0.left" timestamp="1601561673713"> <state width="2005" height="295" key="GridCell.Tab.0.left" timestamp="1601562547211">
<screen x="2496" y="0" width="2048" height="1112" /> <screen x="2496" y="0" width="2048" height="1112" />
</state> </state>
<state width="2005" height="295" key="GridCell.Tab.0.left/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601561673713" /> <state width="2005" height="295" key="GridCell.Tab.0.left/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601562547211" />
<state width="1621" height="283" key="GridCell.Tab.0.left/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796478" /> <state width="1621" height="283" key="GridCell.Tab.0.left/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796478" />
<state width="1621" height="292" key="GridCell.Tab.0.left/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786589" /> <state width="1621" height="292" key="GridCell.Tab.0.left/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786589" />
<state width="2005" height="295" key="GridCell.Tab.0.right" timestamp="1601561673713"> <state width="2005" height="295" key="GridCell.Tab.0.right" timestamp="1601562547211">
<screen x="2496" y="0" width="2048" height="1112" /> <screen x="2496" y="0" width="2048" height="1112" />
</state> </state>
<state width="2005" height="295" key="GridCell.Tab.0.right/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601561673713" /> <state width="2005" height="295" key="GridCell.Tab.0.right/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601562547211" />
<state width="1621" height="283" key="GridCell.Tab.0.right/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" /> <state width="1621" height="283" key="GridCell.Tab.0.right/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" />
<state width="1621" height="292" key="GridCell.Tab.0.right/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786589" /> <state width="1621" height="292" key="GridCell.Tab.0.right/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786589" />
<state width="2005" height="295" key="GridCell.Tab.1.bottom" timestamp="1601561625319"> <state width="2005" height="295" key="GridCell.Tab.1.bottom" timestamp="1601562547211">
<screen x="2496" y="0" width="2048" height="1112" /> <screen x="2496" y="0" width="2048" height="1112" />
</state> </state>
<state width="2005" height="295" key="GridCell.Tab.1.bottom/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601561625319" /> <state width="2005" height="295" key="GridCell.Tab.1.bottom/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601562547211" />
<state width="1621" height="283" key="GridCell.Tab.1.bottom/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" /> <state width="1621" height="283" key="GridCell.Tab.1.bottom/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" />
<state width="1621" height="283" key="GridCell.Tab.1.bottom/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786579" /> <state width="1621" height="283" key="GridCell.Tab.1.bottom/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786579" />
<state width="2005" height="295" key="GridCell.Tab.1.center" timestamp="1601561625318"> <state width="2005" height="295" key="GridCell.Tab.1.center" timestamp="1601562547211">
<screen x="2496" y="0" width="2048" height="1112" /> <screen x="2496" y="0" width="2048" height="1112" />
</state> </state>
<state width="2005" height="295" key="GridCell.Tab.1.center/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601561625318" /> <state width="2005" height="295" key="GridCell.Tab.1.center/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601562547211" />
<state width="1621" height="283" key="GridCell.Tab.1.center/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" /> <state width="1621" height="283" key="GridCell.Tab.1.center/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" />
<state width="1621" height="283" key="GridCell.Tab.1.center/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786579" /> <state width="1621" height="283" key="GridCell.Tab.1.center/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786579" />
<state width="2005" height="295" key="GridCell.Tab.1.left" timestamp="1601561625318"> <state width="2005" height="295" key="GridCell.Tab.1.left" timestamp="1601562547211">
<screen x="2496" y="0" width="2048" height="1112" /> <screen x="2496" y="0" width="2048" height="1112" />
</state> </state>
<state width="2005" height="295" key="GridCell.Tab.1.left/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601561625318" /> <state width="2005" height="295" key="GridCell.Tab.1.left/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601562547211" />
<state width="1621" height="283" key="GridCell.Tab.1.left/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" /> <state width="1621" height="283" key="GridCell.Tab.1.left/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" />
<state width="1621" height="283" key="GridCell.Tab.1.left/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786579" /> <state width="1621" height="283" key="GridCell.Tab.1.left/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786579" />
<state width="2005" height="295" key="GridCell.Tab.1.right" timestamp="1601561625319"> <state width="2005" height="295" key="GridCell.Tab.1.right" timestamp="1601562547211">
<screen x="2496" y="0" width="2048" height="1112" /> <screen x="2496" y="0" width="2048" height="1112" />
</state> </state>
<state width="2005" height="295" key="GridCell.Tab.1.right/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601561625319" /> <state width="2005" height="295" key="GridCell.Tab.1.right/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601562547211" />
<state width="1621" height="283" key="GridCell.Tab.1.right/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" /> <state width="1621" height="283" key="GridCell.Tab.1.right/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" />
<state width="1621" height="283" key="GridCell.Tab.1.right/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786579" /> <state width="1621" height="283" key="GridCell.Tab.1.right/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786579" />
<state width="2005" height="295" key="GridCell.Tab.2.bottom" timestamp="1601561624589"> <state width="2005" height="295" key="GridCell.Tab.2.bottom" timestamp="1601562547212">
<screen x="2496" y="0" width="2048" height="1112" /> <screen x="2496" y="0" width="2048" height="1112" />
</state> </state>
<state width="2005" height="295" key="GridCell.Tab.2.bottom/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601561624589" /> <state width="2005" height="295" key="GridCell.Tab.2.bottom/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601562547212" />
<state width="1621" height="283" key="GridCell.Tab.2.bottom/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" /> <state width="1621" height="283" key="GridCell.Tab.2.bottom/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" />
<state width="1621" height="283" key="GridCell.Tab.2.bottom/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786579" /> <state width="1621" height="283" key="GridCell.Tab.2.bottom/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786579" />
<state width="2005" height="295" key="GridCell.Tab.2.center" timestamp="1601561624589"> <state width="2005" height="295" key="GridCell.Tab.2.center" timestamp="1601562547212">
<screen x="2496" y="0" width="2048" height="1112" /> <screen x="2496" y="0" width="2048" height="1112" />
</state> </state>
<state width="2005" height="295" key="GridCell.Tab.2.center/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601561624589" /> <state width="2005" height="295" key="GridCell.Tab.2.center/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601562547212" />
<state width="1621" height="283" key="GridCell.Tab.2.center/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" /> <state width="1621" height="283" key="GridCell.Tab.2.center/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" />
<state width="1621" height="283" key="GridCell.Tab.2.center/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786579" /> <state width="1621" height="283" key="GridCell.Tab.2.center/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786579" />
<state width="2005" height="295" key="GridCell.Tab.2.left" timestamp="1601561624589"> <state width="2005" height="295" key="GridCell.Tab.2.left" timestamp="1601562547211">
<screen x="2496" y="0" width="2048" height="1112" /> <screen x="2496" y="0" width="2048" height="1112" />
</state> </state>
<state width="2005" height="295" key="GridCell.Tab.2.left/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601561624589" /> <state width="2005" height="295" key="GridCell.Tab.2.left/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601562547211" />
<state width="1621" height="283" key="GridCell.Tab.2.left/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" /> <state width="1621" height="283" key="GridCell.Tab.2.left/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" />
<state width="1621" height="283" key="GridCell.Tab.2.left/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786579" /> <state width="1621" height="283" key="GridCell.Tab.2.left/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786579" />
<state width="2005" height="295" key="GridCell.Tab.2.right" timestamp="1601561624589"> <state width="2005" height="295" key="GridCell.Tab.2.right" timestamp="1601562547212">
<screen x="2496" y="0" width="2048" height="1112" /> <screen x="2496" y="0" width="2048" height="1112" />
</state> </state>
<state width="2005" height="295" key="GridCell.Tab.2.right/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601561624589" /> <state width="2005" height="295" key="GridCell.Tab.2.right/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601562547212" />
<state width="1621" height="283" key="GridCell.Tab.2.right/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" /> <state width="1621" height="283" key="GridCell.Tab.2.right/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" />
<state width="1621" height="283" key="GridCell.Tab.2.right/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786579" /> <state width="1621" height="283" key="GridCell.Tab.2.right/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786579" />
<state width="2005" height="295" key="GridCell.Tab.3.bottom" timestamp="1601561624589"> <state width="2005" height="295" key="GridCell.Tab.3.bottom" timestamp="1601562547212">
<screen x="2496" y="0" width="2048" height="1112" /> <screen x="2496" y="0" width="2048" height="1112" />
</state> </state>
<state width="2005" height="295" key="GridCell.Tab.3.bottom/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601561624589" /> <state width="2005" height="295" key="GridCell.Tab.3.bottom/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601562547212" />
<state width="1621" height="283" key="GridCell.Tab.3.bottom/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" /> <state width="1621" height="283" key="GridCell.Tab.3.bottom/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" />
<state width="1621" height="283" key="GridCell.Tab.3.bottom/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786579" /> <state width="1621" height="283" key="GridCell.Tab.3.bottom/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786579" />
<state width="2005" height="295" key="GridCell.Tab.3.center" timestamp="1601561624589"> <state width="2005" height="295" key="GridCell.Tab.3.center" timestamp="1601562547212">
<screen x="2496" y="0" width="2048" height="1112" /> <screen x="2496" y="0" width="2048" height="1112" />
</state> </state>
<state width="2005" height="295" key="GridCell.Tab.3.center/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601561624589" /> <state width="2005" height="295" key="GridCell.Tab.3.center/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601562547212" />
<state width="1621" height="283" key="GridCell.Tab.3.center/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" /> <state width="1621" height="283" key="GridCell.Tab.3.center/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" />
<state width="1621" height="283" key="GridCell.Tab.3.center/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786579" /> <state width="1621" height="283" key="GridCell.Tab.3.center/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786579" />
<state width="2005" height="295" key="GridCell.Tab.3.left" timestamp="1601561624589"> <state width="2005" height="295" key="GridCell.Tab.3.left" timestamp="1601562547212">
<screen x="2496" y="0" width="2048" height="1112" /> <screen x="2496" y="0" width="2048" height="1112" />
</state> </state>
<state width="2005" height="295" key="GridCell.Tab.3.left/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601561624589" /> <state width="2005" height="295" key="GridCell.Tab.3.left/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601562547212" />
<state width="1621" height="283" key="GridCell.Tab.3.left/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" /> <state width="1621" height="283" key="GridCell.Tab.3.left/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" />
<state width="1621" height="283" key="GridCell.Tab.3.left/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786579" /> <state width="1621" height="283" key="GridCell.Tab.3.left/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786579" />
<state width="2005" height="295" key="GridCell.Tab.3.right" timestamp="1601561624589"> <state width="2005" height="295" key="GridCell.Tab.3.right" timestamp="1601562547212">
<screen x="2496" y="0" width="2048" height="1112" /> <screen x="2496" y="0" width="2048" height="1112" />
</state> </state>
<state width="2005" height="295" key="GridCell.Tab.3.right/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601561624589" /> <state width="2005" height="295" key="GridCell.Tab.3.right/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601562547212" />
<state width="1621" height="283" key="GridCell.Tab.3.right/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" /> <state width="1621" height="283" key="GridCell.Tab.3.right/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" />
<state width="1621" height="283" key="GridCell.Tab.3.right/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786579" /> <state width="1621" height="283" key="GridCell.Tab.3.right/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786579" />
<state width="2005" height="295" key="GridCell.Tab.4.bottom" timestamp="1601561624589"> <state width="2005" height="295" key="GridCell.Tab.4.bottom" timestamp="1601562547212">
<screen x="2496" y="0" width="2048" height="1112" /> <screen x="2496" y="0" width="2048" height="1112" />
</state> </state>
<state width="2005" height="295" key="GridCell.Tab.4.bottom/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601561624589" /> <state width="2005" height="295" key="GridCell.Tab.4.bottom/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601562547212" />
<state width="1621" height="283" key="GridCell.Tab.4.bottom/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" /> <state width="1621" height="283" key="GridCell.Tab.4.bottom/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" />
<state width="1621" height="283" key="GridCell.Tab.4.bottom/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786580" /> <state width="1621" height="283" key="GridCell.Tab.4.bottom/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786580" />
<state width="2005" height="295" key="GridCell.Tab.4.center" timestamp="1601561624589"> <state width="2005" height="295" key="GridCell.Tab.4.center" timestamp="1601562547212">
<screen x="2496" y="0" width="2048" height="1112" /> <screen x="2496" y="0" width="2048" height="1112" />
</state> </state>
<state width="2005" height="295" key="GridCell.Tab.4.center/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601561624589" /> <state width="2005" height="295" key="GridCell.Tab.4.center/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601562547212" />
<state width="1621" height="283" key="GridCell.Tab.4.center/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" /> <state width="1621" height="283" key="GridCell.Tab.4.center/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" />
<state width="1621" height="283" key="GridCell.Tab.4.center/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786579" /> <state width="1621" height="283" key="GridCell.Tab.4.center/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786579" />
<state width="2005" height="295" key="GridCell.Tab.4.left" timestamp="1601561624589"> <state width="2005" height="295" key="GridCell.Tab.4.left" timestamp="1601562547212">
<screen x="2496" y="0" width="2048" height="1112" /> <screen x="2496" y="0" width="2048" height="1112" />
</state> </state>
<state width="2005" height="295" key="GridCell.Tab.4.left/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601561624589" /> <state width="2005" height="295" key="GridCell.Tab.4.left/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601562547212" />
<state width="1621" height="283" key="GridCell.Tab.4.left/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" /> <state width="1621" height="283" key="GridCell.Tab.4.left/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" />
<state width="1621" height="283" key="GridCell.Tab.4.left/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786579" /> <state width="1621" height="283" key="GridCell.Tab.4.left/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786579" />
<state width="2005" height="295" key="GridCell.Tab.4.right" timestamp="1601561624589"> <state width="2005" height="295" key="GridCell.Tab.4.right" timestamp="1601562547212">
<screen x="2496" y="0" width="2048" height="1112" /> <screen x="2496" y="0" width="2048" height="1112" />
</state> </state>
<state width="2005" height="295" key="GridCell.Tab.4.right/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601561624589" /> <state width="2005" height="295" key="GridCell.Tab.4.right/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601562547212" />
<state width="1621" height="283" key="GridCell.Tab.4.right/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" /> <state width="1621" height="283" key="GridCell.Tab.4.right/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600687796479" />
<state width="1621" height="283" key="GridCell.Tab.4.right/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786579" /> <state width="1621" height="283" key="GridCell.Tab.4.right/0.0.1664.1069@0.0.1664.1069" timestamp="1597591786579" />
<state x="425" y="267" key="Rider.ProjectTemplateDialog.Size" timestamp="1597346163416"> <state x="425" y="267" key="Rider.ProjectTemplateDialog.Size" timestamp="1597346163416">
@@ -374,10 +387,10 @@
<screen x="0" y="0" width="1664" height="1069" /> <screen x="0" y="0" width="1664" height="1069" />
</state> </state>
<state x="93" y="93" width="1479" height="884" key="VCS.FileHistoryDialog/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600691741046" /> <state x="93" y="93" width="1479" height="884" key="VCS.FileHistoryDialog/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1600691741046" />
<state x="3019" y="279" key="Vcs.Push.Dialog.v2" timestamp="1601561932946"> <state x="2702" y="263" key="Vcs.Push.Dialog.v2" timestamp="1601562241610">
<screen x="2496" y="0" width="2048" height="1112" /> <screen x="2496" y="0" width="2048" height="1112" />
</state> </state>
<state x="3019" y="279" key="Vcs.Push.Dialog.v2/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601561932946" /> <state x="2702" y="263" key="Vcs.Push.Dialog.v2/0.0.1664.1069/2496.0.2048.1112@2496.0.2048.1112" timestamp="1601562241610" />
<state x="425" y="268" key="Vcs.Push.Dialog.v2/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1597346553175" /> <state x="425" y="268" key="Vcs.Push.Dialog.v2/0.0.1664.1069/2496.0.640.440@0.0.1664.1069" timestamp="1597346553175" />
<state x="495" y="233" width="672" height="678" key="search.everywhere.popup" timestamp="1597408982255"> <state x="495" y="233" width="672" height="678" key="search.everywhere.popup" timestamp="1597408982255">
<screen x="0" y="0" width="1664" height="1069" /> <screen x="0" y="0" width="1664" height="1069" />
@@ -389,13 +402,13 @@
<breakpoints> <breakpoints>
<line-breakpoint enabled="true" type="DotNet Breakpoints"> <line-breakpoint enabled="true" type="DotNet Breakpoints">
<url>file://$PROJECT_DIR$/OneDriveArchiver/Program.cs</url> <url>file://$PROJECT_DIR$/OneDriveArchiver/Program.cs</url>
<line>11</line> <line>15</line>
<properties documentPath="C:\Users\johan\OneDrive\DEV\OneDriveArchiver\OneDriveArchiver\Program.cs" initialLine="11"> <properties documentPath="C:\Users\johan\OneDrive\DEV\OneDriveArchiver\OneDriveArchiver\Program.cs" initialLine="11">
<startOffsets> <startOffsets>
<option value="207" /> <option value="369" />
</startOffsets> </startOffsets>
<endOffsets> <endOffsets>
<option value="250" /> <option value="412" />
</endOffsets> </endOffsets>
</properties> </properties>
<option name="timeStamp" value="1" /> <option name="timeStamp" value="1" />

View File

@@ -10,21 +10,28 @@ namespace OneDriveArchiver
public static class IoHelper public static class IoHelper
{ {
#region Constructor #region Constructor
/// <summary>
/// Construct IoHelper instance
/// </summary>
static IoHelper() static IoHelper()
{ {
ProcessedFiles = 0; ProcessedFiles = 0;
} }
#endregion #endregion
#region Properties #region Properties
/// <summary>
/// Keep track of processed files
/// </summary>
public static int ProcessedFiles public static int ProcessedFiles
{ {
get; get;
set; set;
} }
#endregion #endregion
#region Private Methods
/// <summary> /// <summary>
/// Archives a one drive file. It takes the file creation date and month, /// Archives a one drive file. It takes the file creation date and month,
/// creates the necessary folder structure (if necessary) i.e. Year\Month and /// creates the necessary folder structure (if necessary) i.e. Year\Month and
@@ -32,8 +39,9 @@ namespace OneDriveArchiver
/// will sync the changes being made back to the cloud. Base Path is the path where /// will sync the changes being made back to the cloud. Base Path is the path where
/// the file was found. So the subfolder will start in the same directory. /// the file was found. So the subfolder will start in the same directory.
/// </summary> /// </summary>
/// <param name="appName"></param> /// <param name="appName">Name of the application for printing it out</param>
/// <param name="filename">Filename</param> /// <param name="targetPath">Path to archive file</param>
/// <param name="filename">Filename to use</param>
private static void ArchiveOneDriveFile(string appName, string targetPath, string filename) private static void ArchiveOneDriveFile(string appName, string targetPath, string filename)
{ {
try try
@@ -83,7 +91,9 @@ namespace OneDriveArchiver
$"Exception while backing up OneDrive file. Message = {ex.Message}, Stacktrace = {ex.StackTrace}"); $"Exception while backing up OneDrive file. Message = {ex.Message}, Stacktrace = {ex.StackTrace}");
} }
} }
#endregion
#region Public Methods
/// <summary> /// <summary>
/// ProcessFilesForDirectory implementation. Processes all contained directory recursively and /// ProcessFilesForDirectory implementation. Processes all contained directory recursively and
/// archives the files to the archive directory. /// archives the files to the archive directory.
@@ -100,7 +110,7 @@ namespace OneDriveArchiver
var containedDirectories = Directory.GetDirectories(currentDirectoryWithFiles); var containedDirectories = Directory.GetDirectories(currentDirectoryWithFiles);
foreach (var containedDirectory in containedDirectories) foreach (var containedDirectory in containedDirectories)
{ {
ProcessFilesForDirectory(containedDirectory, appName, targetPath, needsRecursion); ProcessFilesForDirectory(containedDirectory, appName, targetPath, true);
} }
} }
@@ -142,5 +152,6 @@ namespace OneDriveArchiver
Console.WriteLine($"{appName}: No files found to process."); Console.WriteLine($"{appName}: No files found to process.");
} }
} }
#endregion
} }
} }

View File

@@ -7,6 +7,10 @@ namespace OneDriveArchiver
{ {
internal static class Program internal static class Program
{ {
/// <summary>
/// OneDriveArchiver Main entry point
/// </summary>
/// <param name="args">Parameter from the command line</param>
private static void Main(string[] args) private static void Main(string[] args)
{ {
const string appName = "OneDriverArchiver"; const string appName = "OneDriverArchiver";
@@ -28,6 +32,8 @@ namespace OneDriveArchiver
} }
// check if the directory to process really exists // check if the directory to process really exists
// default is not using the recursive mode...
var needsRecursion = false;
if (!Directory.Exists(args[0])) if (!Directory.Exists(args[0]))
{ {
Console.WriteLine($"{appName}: The source directory '{args[0]}' does not exist. Please specify an existing one."); Console.WriteLine($"{appName}: The source directory '{args[0]}' does not exist. Please specify an existing one.");
@@ -37,9 +43,6 @@ namespace OneDriveArchiver
// normal processing... // normal processing...
Console.WriteLine($"{appName}: starting up..."); Console.WriteLine($"{appName}: starting up...");
// default is not using the recursive mode...
var needsRecursion = false;
// set target path // set target path
var targetPath = args.Length == 1 ? Path.GetFullPath(".") : args[1]; var targetPath = args.Length == 1 ? Path.GetFullPath(".") : args[1];
var startUpTime = DateTime.Now; var startUpTime = DateTime.Now;
@@ -60,6 +63,7 @@ namespace OneDriveArchiver
// process the base directory, plus possible containing directories recursively // process the base directory, plus possible containing directories recursively
IoHelper.ProcessFilesForDirectory(args[0], appName, targetPath, needsRecursion); IoHelper.ProcessFilesForDirectory(args[0], appName, targetPath, needsRecursion);
// compute the time we needed in total for processing
var endProcessingTime = DateTime.Now; var endProcessingTime = DateTime.Now;
var processingTime = endProcessingTime - startUpTime; var processingTime = endProcessingTime - startUpTime;

View File

@@ -45,20 +45,6 @@
], ],
"assetTargetFallback": true, "assetTargetFallback": true,
"warn": true, "warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Runtime.win-x64",
"version": "[3.1.7, 3.1.7]"
},
{
"name": "Microsoft.NETCore.App.Runtime.win-x64",
"version": "[3.1.7, 3.1.7]"
},
{
"name": "Microsoft.WindowsDesktop.App.Runtime.win-x64",
"version": "[3.1.7, 3.1.7]"
}
],
"frameworkReferences": { "frameworkReferences": {
"Microsoft.NETCore.App": { "Microsoft.NETCore.App": {
"privateAssets": "all" "privateAssets": "all"
@@ -66,11 +52,6 @@
}, },
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.401\\RuntimeIdentifierGraph.json" "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.401\\RuntimeIdentifierGraph.json"
} }
},
"runtimes": {
"win-x64": {
"#import": []
}
} }
} }
} }

View File

@@ -7,11 +7,8 @@
<NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot> <NuGetPackageRoot Condition=" '$(NuGetPackageRoot)' == '' ">$(UserProfile)\.nuget\packages\</NuGetPackageRoot>
<NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\johan\.nuget\packages\</NuGetPackageFolders> <NuGetPackageFolders Condition=" '$(NuGetPackageFolders)' == '' ">C:\Users\johan\.nuget\packages\</NuGetPackageFolders>
<NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle> <NuGetProjectStyle Condition=" '$(NuGetProjectStyle)' == '' ">PackageReference</NuGetProjectStyle>
<NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.7.0</NuGetToolVersion> <NuGetToolVersion Condition=" '$(NuGetToolVersion)' == '' ">5.5.0</NuGetToolVersion>
</PropertyGroup> </PropertyGroup>
<ItemGroup Condition=" '$(ExcludeRestorePackageImports)' != 'true' ">
<SourceRoot Include="$([MSBuild]::EnsureTrailingSlash($(NuGetPackageFolders)))" />
</ItemGroup>
<PropertyGroup> <PropertyGroup>
<MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects> <MSBuildAllProjects>$(MSBuildAllProjects);$(MSBuildThisFileFullPath)</MSBuildAllProjects>
</PropertyGroup> </PropertyGroup>

View File

@@ -1,8 +1,7 @@
{ {
"version": 3, "version": 3,
"targets": { "targets": {
".NETCoreApp,Version=v3.1": {}, ".NETCoreApp,Version=v3.1": {}
".NETCoreApp,Version=v3.1/win-x64": {}
}, },
"libraries": {}, "libraries": {},
"projectFileDependencyGroups": { "projectFileDependencyGroups": {
@@ -52,20 +51,6 @@
], ],
"assetTargetFallback": true, "assetTargetFallback": true,
"warn": true, "warn": true,
"downloadDependencies": [
{
"name": "Microsoft.AspNetCore.App.Runtime.win-x64",
"version": "[3.1.7, 3.1.7]"
},
{
"name": "Microsoft.NETCore.App.Runtime.win-x64",
"version": "[3.1.7, 3.1.7]"
},
{
"name": "Microsoft.WindowsDesktop.App.Runtime.win-x64",
"version": "[3.1.7, 3.1.7]"
}
],
"frameworkReferences": { "frameworkReferences": {
"Microsoft.NETCore.App": { "Microsoft.NETCore.App": {
"privateAssets": "all" "privateAssets": "all"
@@ -73,11 +58,6 @@
}, },
"runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.401\\RuntimeIdentifierGraph.json" "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\3.1.401\\RuntimeIdentifierGraph.json"
} }
},
"runtimes": {
"win-x64": {
"#import": []
}
} }
} }
} }

View File

@@ -1,12 +1,8 @@
{ {
"version": 2, "version": 2,
"dgSpecHash": "138W0tXEcg4vyZzmm0ngE67FUYyJmz4Gq9oY0SNEdYsE3cYuyqqgro97cunKtYN1Py1b03vmwmOtY6dFsNkKkg==", "dgSpecHash": "Ndf2WK+JZuJJUSvyjFv/NuMjlE5m2nyqs51nC/CyW5fmiE8JzEz8wgkXv1pT4YggV34Kw16kDBMDQzOCSER4GA==",
"success": true, "success": true,
"projectFilePath": "C:\\Users\\johan\\OneDrive\\DEV\\OneDriveArchiver\\OneDriveArchiver\\OneDriveArchiver.csproj", "projectFilePath": "C:\\Users\\johan\\OneDrive\\DEV\\OneDriveArchiver\\OneDriveArchiver\\OneDriveArchiver.csproj",
"expectedPackageFiles": [ "expectedPackageFiles": [],
"C:\\Users\\johan\\.nuget\\packages\\microsoft.netcore.app.runtime.win-x64\\3.1.7\\microsoft.netcore.app.runtime.win-x64.3.1.7.nupkg.sha512",
"C:\\Users\\johan\\.nuget\\packages\\microsoft.windowsdesktop.app.runtime.win-x64\\3.1.7\\microsoft.windowsdesktop.app.runtime.win-x64.3.1.7.nupkg.sha512",
"C:\\Users\\johan\\.nuget\\packages\\microsoft.aspnetcore.app.runtime.win-x64\\3.1.7\\microsoft.aspnetcore.app.runtime.win-x64.3.1.7.nupkg.sha512"
],
"logs": [] "logs": []
} }

View File

@@ -1 +1 @@
16013791295246375 16020699274521478