Skip to content

Commit

Permalink
update RemoteListing to fix path parsing
Browse files Browse the repository at this point in the history
  • Loading branch information
checkymander committed Feb 1, 2024
1 parent be19837 commit aa0ffd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Payload_Type/athena/athena/agent_code/ls/RemoteListing.cs
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ internal static FileBrowserResponseResult GetRemoteSingleFile(UNCPathParser pars
is_file = false,
permissions = new Dictionary<string, string>(),
name = parser.GetFileName(),
parent_path = parser.GetParentPath(),
parent_path = parser.GetParentPath(true),
success = true,
access_time = LsUtilities.GetTimeStamp(new DateTimeOffset(file.LastAccessTime).ToUnixTimeMilliseconds()),
modify_time = LsUtilities.GetTimeStamp(new DateTimeOffset(file.LastWriteTime).ToUnixTimeMilliseconds()),
Expand Down Expand Up @@ -88,7 +88,7 @@ internal static FileBrowserResponseResult GetRemoteDirectory(UNCPathParser parse
is_file = false,
permissions = new Dictionary<string, string>(),
name = parser.GetFileName(),
parent_path = parser.GetParentPath(),
parent_path = parser.GetParentPath(true),
success = true,
access_time = LsUtilities.GetTimeStamp(new DateTimeOffset(file.LastAccessTime).ToUnixTimeMilliseconds()),
modify_time = LsUtilities.GetTimeStamp(new DateTimeOffset(file.LastWriteTime).ToUnixTimeMilliseconds()),
Expand Down

0 comments on commit aa0ffd0

Please sign in to comment.