Added code to prevent archiver to archive itself...
This commit is contained in:
@@ -33,6 +33,13 @@ namespace OneDriveArchiver
|
|||||||
{
|
{
|
||||||
Console.WriteLine($"Processing file {item}...");
|
Console.WriteLine($"Processing file {item}...");
|
||||||
|
|
||||||
|
// skip ourselves...
|
||||||
|
if (item.Contains("OneDriveArchiver"))
|
||||||
|
{
|
||||||
|
Console.WriteLine("Skipping processing of my own executable. Proceeding...");
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
// archive the file
|
// archive the file
|
||||||
IoHelper.ArchiveOneDriveFile(item);
|
IoHelper.ArchiveOneDriveFile(item);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user