Skip to content

Commit

Permalink
Merge pull request #6 from waxtell/develop
Browse files Browse the repository at this point in the history
prep for release
  • Loading branch information
waxtell committed May 23, 2019
2 parents 7c2ce39 + e63d112 commit 967c88b
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
3 changes: 2 additions & 1 deletion SampleApp9000/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"RemotePath": "/",
"SessionExecutablePath": "<absolute path to your winscp executable>\\WinSCP.exe",
"Mask": "*.*",
"IncludeSubdirectories": true
"IncludeSubdirectories": true,
"TreatExistingFilesAsNew": false
}
}
4 changes: 3 additions & 1 deletion WinSCP.LongPollWatcher.BackgroundService/LongPollWatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ IList<TrackedFile> GetRemoteFiles(Session session)
session.ExecutablePath = _options.SessionExecutablePath;
}

IList<TrackedFile> previousFiles = null;
IList<TrackedFile> previousFiles = _options.TreatExistingFilesAsNew
? new List<TrackedFile>()
: null;

while (!stoppingToken.IsCancellationRequested)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@ public class LongPollWatcherOptions
public string Mask { get; set; } = "*.*";
public bool IncludeSubdirectories { get; set; } = true;
public string SessionExecutablePath { get; set; }
public bool TreatExistingFilesAsNew { get; set; } = false;
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,13 @@
<TargetFramework>netstandard2.0</TargetFramework>
<Authors>Will Axtell</Authors>
<PackageTags>WinSCP Ftp Polling Background</PackageTags>
<PackageReleaseNotes>1.0.0 - Initial release</PackageReleaseNotes>
<PackageReleaseNotes>1.0.0 - Initial release
1.0.1 - Added option to treat existing files as new</PackageReleaseNotes>
<PackageProjectUrl>https://github.com/waxtell/WinSCP.LongPollWatcher.BackgroundService</PackageProjectUrl>
<RepositoryUrl>https://github.com/waxtell/WinSCP.LongPollWatcher.BackgroundService.git</RepositoryUrl>
<RepositoryType>git</RepositoryType>
<Description>Ftp long polling background service for host builder applications</Description>
<Version>1.0.1</Version>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.Extensions.Hosting" Version="2.2.0" />
Expand Down

0 comments on commit 967c88b

Please sign in to comment.