Aditya Patwardhan and Steve Lee
dc60e20cfb
Fix Test-Path -IsValid to check for invalid path and filename characters ( #21358 ) ( #23931 )
...
Co-authored-by: Steve Lee <slee@microsoft.com >
2024-06-11 16:05:59 -07:00
Aditya Patwardhan
d1fc83f473
Block getting help from network locations in restricted remoting sessions ( #20593 ) ( #20615 )
2023-11-01 12:39:35 -07:00
Aditya Patwardhan
9e8a5cc033
Fix Copy-Item progress to only show completed when all files are copied ( #20517 ) ( #20544 )
2023-10-19 15:03:42 -07:00
Dongbo Wang
21600d6327
[release/v7.4.0-preview.6] Update .NET SDK to version 8.0.100-rc.1.23455.8 ( #20269 ) ( #20358 )
2023-09-25 12:29:00 -07:00
Sean Wheeler
5595072568
Change docs.microsoft.com to learn.microsoft.com ( #19994 )
2023-07-17 15:54:17 -07:00
MartinGC94
2e2b7db092
Fix wildcard globing in root of device paths ( #19442 )
2023-05-15 10:15:05 -07:00
Steve Lee
7888196b87
Add specific error message that creating Junctions requires absolute path ( #19409 )
2023-05-09 08:37:28 -07:00
Olivia
05fbceb48c
Fix New-Item to re-create Junction when -Force is specified ( #18311 )
2023-05-02 09:36:33 -07:00
CarloToso
69e9b439fd
Fix codefactor if part 5 ( #19286 )
2023-03-16 22:02:42 +05:00
Dongbo Wang
3cdd1fa6ef
Revert "Use ArgumentNullException.ThrowIfNull part 2 ( #19258 )" ( #19263 )
...
This reverts commit 8d8f45e3df .
2023-03-02 12:00:23 -08:00
CarloToso
8d8f45e3df
Use ArgumentNullException.ThrowIfNull part 2 ( #19258 )
2023-03-02 22:29:46 +05:00
CarloToso
c48e5cbcca
Use ArgumentException.ThrowIfNullOrEmpty() in more places ( #19213 )
2023-02-27 14:42:07 -08:00
Dongbo Wang
77fcd471bb
Revert a few change to not use 'ArgumentNullException.ThrowIfNull' ( #19151 )
2023-02-22 13:31:14 -08:00
spaette
ec0eb22062
Fix typos in comments ( #19064 )
2023-02-03 10:40:43 +05:00
Paul Higinbotham
f3485228f7
Ignore expected error for file systems not supporting alternate streams ( #19065 )
2023-01-31 08:23:44 -08:00
Aditya Patwardhan
f8cbf90ccb
Fix progress calculation divide by zero in Copy-Item ( #19038 )
2023-01-27 10:03:19 -08:00
Steve Lee
1c27a0ceac
Add progress to Copy-Item ( #18735 )
2023-01-25 16:34:44 +05:00
CarloToso
0ee317a157
Use interpolated strings 3 ( #18979 )
2023-01-21 17:56:57 +05:00
James Truher [MSFT]
4f57804f46
Fix up all comments to be in the proper order with proper spacing ( #18619 )
2023-01-03 12:12:42 -08:00
CarloToso
b48943ce31
Replace ArgumentNullException(nameof()) -> ArgumentNullException.ThrowIfNull() 2 ( #18792 )
2022-12-16 16:46:45 +05:00
Ilya
218c6cea15
Unify CreateFile pinvoke in SMA ( #18751 )
2022-12-15 11:05:07 +05:00
CarloToso
2ddc63f151
Replace ArgumentNullException(nameof()) -> ArgumentNullException.ThrowIfNull() ( #18784 )
2022-12-14 18:30:33 +05:00
Steve Lee
eb9ca7c351
Fix New-Item -ItemType Hardlink to resolve target to absolute path and not allow link to itself ( #18634 )
2022-12-13 22:09:28 +05:00
Ilya
07175ae0ff
Replace DllImport with LibraryImport for WNetAddConnection2 ( #18721 )
2022-12-05 23:50:22 +05:00
Ilya
bdea773598
Replace DllImport with LibraryImport for WNetGetConnection ( #18690 )
2022-12-03 17:16:26 +05:00
Ilya
3dc95ced87
Replace DllImport with LibraryImport - 1 ( #18603 )
2022-11-30 10:00:12 -08:00
Ilya
8bc9fdb2a1
Replace DllImport with LibraryImport in SMA 2 ( #18543 )
2022-11-22 22:22:14 +05:00
Ilya
b84652745c
Replace DllImport with LibraryImport in SMA 1 ( #18520 )
2022-11-12 16:48:27 +05:00
xtqqczze
1688b0fc35
Replace UTF8Encoding(false) with Encoding.Default ( #18356 )
2022-11-07 10:07:36 -08:00
Ilya
8965af3d52
Remove some static constants from Utils.Separators ( #18154 )
2022-10-27 15:25:41 -07:00
Steve Lee
61b5dceb60
Make experimental feature PSAnsiRenderingFileInfo stable ( #18042 )
2022-09-12 10:23:03 -07:00
Frode Flaten
d204d29035
Use null propagation operator in System.Management.Automation ( #17792 )
2022-08-01 09:20:09 -07:00
Steve Lee
d72cedd70b
Fix FileSystemProvider to work with volume and pipe paths ( #15873 )
2022-07-25 22:07:26 +00:00
Dmitry Volodin
8f6b75826e
Use compound assignment in /System.Management.Automation ( #17724 )
2022-07-25 22:07:33 +05:00
Steve Lee
3efa28162e
Change Get-ChildItem to treat trailing slash in path as indicating a directory when used with -Recurse ( #17704 )
2022-07-21 09:39:11 +05:00
Shuangchi He
8cc39848bc
Fix some typos in source code ( #17481 )
2022-06-06 10:14:53 -07:00
MartinGC94
5e6e7ca449
Add OutputType attribute to various commands ( #16962 )
2022-03-24 15:54:08 -07:00
Ilya
a5d41c2287
Use FindFirstFileW instead of FindFirstFileExW to correctly handle Unicode file names on FAT32 ( #16840 )
2022-02-05 07:13:14 -08:00
Ilya
9f722ef950
Use more efficient platform detection API ( #16760 )
...
* Use more efficient platform detection API
Use static and const new OperatingSystem class API to avoid string comparisons and extra allocations.
* Remove unused variable
2022-01-27 08:53:52 -08:00
hammy3502
3eca7c019e
Adds a .ResolvedTarget Property to File-System Items to Reflect a Symlink's Target as FileSystemInfo ( #16490 )
2022-01-21 09:23:11 +05:00
Shri Ram K S
7bb8fa16ab
Fix the Max_PATH condition check to handle long path correctly ( #16487 )
2021-11-19 15:48:26 -08:00
Steve Lee
d0e823797f
Don't allow Move-Item with FileSystemProvider to move a directory into itself ( #16198 )
2021-10-12 14:16:32 -07:00
Dongbo Wang
2f57bf848b
Change Target from a CodeProperty to be an AliasProperty that points to FileSystemInfo.LinkTarget ( #16165 )
2021-10-05 10:29:16 -07:00
Steve Lee
ed249d0fe6
Remove support for AppExeCLinks to retrieve target ( #16044 )
2021-09-14 14:08:00 -07:00
Steve Lee
5872e47254
Fix regression in Move-Item to only fallback to CopyAndDelete in specific cases ( #16029 )
...
If Move fails, check if known case before attempting CopyAndDelete:
- if an item is attempted to be renamed across filesystem mount boundaries.
- if the source and destination do not have the same root path.
2021-09-08 11:20:30 +05:00
arfy slowy
55855fbe5d
Fix spelling in XML docs ( #15939 )
2021-08-17 09:01:04 +05:00
Steve Lee
cced56d75a
Make PS-Committee reviewed experimental features stable ( #15864 )
2021-08-09 14:01:57 -07:00
Ilya
45adfee558
Enhance Remove-Item to work with OneDrive ( #15571 )
2021-08-05 11:41:55 -07:00
xtqqczze
883ca98dd7
Seal private classes ( #15725 )
...
* Seal private classes
* Fix CS0509
* Fix CS0628
2021-07-19 14:09:12 +05:00
Steve Lee
bfb4a818bf
Add support to colorize FileInfo file names ( #14403 )
2021-07-12 11:07:29 -07:00