# HG changeset patch # User Brad Greco # Date 1560718486 14400 # Node ID 88ca7e4fc0233016b91d94075f24ffbb8c5893ff # Parent b0af6b4bed4d860ccb441ec0f76109701d3e2417 Allow running a file check on a directory. diff -r b0af6b4bed4d -r 88ca7e4fc023 ServerMonitor/Objects/Checks/FileCheck.cs --- a/ServerMonitor/Objects/Checks/FileCheck.cs Sun Jun 16 16:54:29 2019 -0400 +++ b/ServerMonitor/Objects/Checks/FileCheck.cs Sun Jun 16 16:54:46 2019 -0400 @@ -23,7 +23,7 @@ int timeZoneOffset = TimeZoneInfo.Local.GetUtcOffset(DateTime.Now).Hours * -1; // Set the date format to long-iso since it's easy to parse. // Set the time zone to the match the client time zone so comparisons are reliable. - return "export TIME_STYLE=long-iso; export TZ=UTC" + timeZoneOffset + "; ls -l \"{0}\""; + return "export TIME_STYLE=long-iso; export TZ=UTC" + timeZoneOffset + "; ls -ld \"{0}\""; } }