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
..
2023-01-27 10:45:05 +00:00
2023-04-12 13:28:56 +01:00
2023-04-25 00:39:44 +01:00
2020-12-07 10:31:45 +00:00
2021-07-06 09:29:15 -05:00
2023-05-05 09:59:11 +03:00
2023-02-08 21:47:28 -05:00
2023-03-22 15:20:12 +00:00
2021-08-09 12:16:13 -05:00
2023-04-18 11:06:19 +01:00
2023-04-12 10:15:43 +01:00
2023-05-10 11:10:08 -04:00
2023-03-30 17:08:04 +01:00
2022-11-25 15:32:55 +11:00
2023-03-21 12:31:33 +00:00
2022-08-19 13:11:27 -05:00
2020-12-07 10:31:45 +00:00
2020-12-07 10:31:45 +00:00
2021-08-10 15:40:23 +01:00
2021-09-14 16:32:25 -04:00
2023-01-06 09:27:25 -05:00
2023-01-06 09:27:25 -05:00
2023-01-27 09:58:53 -06:00
2020-12-07 10:31:45 +00:00
2023-03-15 13:23:01 +00:00
2023-03-01 12:17:37 -05:00
2020-12-07 10:31:45 +00:00
2020-12-07 10:31:45 +00:00
2023-03-05 20:15:14 -06:00
2020-12-07 10:31:45 +00:00
2021-09-02 13:00:01 +01:00
2022-09-16 12:59:02 +01:00
2020-12-07 10:31:45 +00:00
2023-03-05 20:15:14 -06:00
2023-01-13 13:51:56 +00:00
2022-09-16 12:59:02 +01:00
2020-12-07 10:31:45 +00:00
2021-04-15 09:07:12 -04:00
2022-09-16 12:59:02 +01:00
2022-09-16 12:59:02 +01:00
2021-02-02 14:49:16 +00:00
2022-03-21 17:00:31 -04:00
2023-03-05 20:56:54 -06:00
2020-12-07 10:31:45 +00:00
2022-09-16 12:59:02 +01:00
2023-01-24 10:43:14 +00:00
2022-04-12 10:54:26 +01:00
2022-01-07 13:09:47 +01:00
2021-09-02 12:59:50 +01:00
2020-09-18 14:27:14 -04:00
2023-01-27 09:58:53 -06:00
2022-09-16 12:59:02 +01:00
2022-01-28 16:15:29 +00:00
2022-05-09 11:55:57 -04:00
2023-03-01 12:17:37 -05:00
2020-12-07 10:31:45 +00:00
2021-12-13 13:06:02 +00:00
2020-12-07 10:31:45 +00:00
2021-01-22 12:50:29 +00:00
2021-01-18 14:21:54 +00:00
2023-01-13 17:31:02 +00:00
2020-12-07 10:31:45 +00:00
2021-05-27 20:02:48 +05:30
2021-09-08 08:19:43 +10:00
2022-04-26 14:31:01 -05:00
2020-12-07 10:31:45 +00:00
2020-12-07 10:31:45 +00:00