Files
metasploit-gs/lib/msf/core/post
RageLtMan 62e59e6250 Replace [System.IO.File]::Exists with Test-Path
The exists? method in post/file has a different implementation for
PSH sessions than other shells which are testing for the existence
of a path, not the presence of a file.

Fix this by replacing [System.IO.File]::Exists with Test-Path.

Testing:
```
PS C:\Windows\system32> [System.IO.File]::Exists("C:\")
False
PS C:\Windows\system32>test-path C:\
PS C:\Windows\system32> test-path C:\
True
```
2023-05-10 11:10:08 -04:00
..
2017-08-06 18:05:59 -05:00
2020-12-07 10:31:45 +00:00
2023-02-24 13:46:11 -05:00
2020-12-07 10:31:45 +00:00
2020-12-07 10:31:45 +00:00
2022-08-06 14:01:56 -04:00
2014-06-06 16:20:40 -05:00