Commit Graph
302 Commits
Author SHA1 Message Date
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 0d320ab89a Use standard SBCS detection (#18593) 2022-11-22 09:13:09 -08:00
Ilya 65176b4df1 Remove SafeRegistryHandle (#18597) 2022-11-22 08:33:51 +05:00
Steve Lee c740a07e10 Change public API mention of monad to PowerShell (#18491)
* Change public API mention of `monad` to PowerShell

* looks like I forgot to save changes in some files
2022-11-14 12:45:23 -05:00
Ilya b84652745c Replace DllImport with LibraryImport in SMA 1 (#18520) 2022-11-12 16:48:27 +05:00
Steve Lee 837482376e Replace msh in public API comment based documentation with PowerShell equivalent (#18483) 2022-11-08 08:27:52 +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
Robert Holt 0ae0b65e25 Revert "Enhance Remove-Item to work with OneDrive (Second) (#15260)" (#15546) 2021-06-11 12:32:25 -07:00
Ikko Ashimine 6018d6b183 Fix typo in FileSystemProvider.cs (#15445) 2021-06-03 13:15:32 -07:00
Aditya Patwardhan 7ead137407 Update to .NET Preview 6 SDK (#15452) 2021-05-25 19:24:28 -07:00
Staffan Gustafsson e927e94aed Enable nullable: Microsoft.PowerShell.Commands.IRegistryWrapper (#14177) 2021-05-20 12:46:03 +05:00
Staffan Gustafsson 6d4420f4b9 Enable nullable: System.Management.Automation.Provider.ISecurityDescriptorCmdletProvider (#14162) 2021-05-18 21:46:00 +05:00
Staffan Gustafsson 94aa68d30f Enable nullable: System.Management.Automation.Provider.ICmdletProviderSupportsHelp (#14150) 2021-05-18 21:09:00 +05:00
Staffan Gustafsson efdc500ba5 Annotate ThrowTerminatingError with DoesNotReturn attribute (#15352) 2021-05-06 09:23:34 -07:00
PRASOON KARUNAN V 15bb767a74 Remove alias d for the -Directory parameter from Get-ChildItem (#15171) 2021-05-05 17:23:09 -07:00
Ilya 08e731398c Enhance Remove-Item to work with OneDrive (Second) (#15260) 2021-04-27 12:31:12 -07:00
Travis Plunk 720c615d04 Revert "Enhance Remove-Item to work with OneDrive (#14902)" (#15253)
This reverts commit fafc38fe5c.
2021-04-16 13:43:11 -07:00
Staffan Gustafsson b2d2541d87 Enable nullablE for System.Management.Automation.Provider.IContentReader (#14151) 2021-04-16 13:23:49 -04:00
Ilya 91e7298fd8 Use static lambda keyword (#15154) 2021-04-12 12:44:05 -07:00
Ilya fafc38fe5c Enhance Remove-Item to work with OneDrive (#14902) 2021-04-12 09:36:16 -07:00
Steve Lee 5d0dadf19d Fallback to CopyAndDelete() when MoveTo() fails due to an IOException (#15077) 2021-03-25 15:11:17 -07:00
Steve Lee 22b3653bf4 Fix Move-Item for FileSystemProvider to use copy-delete instead of move for DFS paths (#14913) 2021-03-08 15:01:31 -08:00
xtqqczze b7a431a442 Fix SA1504: All accessors should be single-line or multi-lin (#14241)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1504.md
2021-01-09 12:44:38 +05:00
xtqqczze 9d4665f32f Enable SA1003: Symbols should be spaced correctly (#14476)
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1003.md
2020-12-23 21:21:26 +05:00
Staffan Gustafsson d487537453 Enable nullable: System.Management.Automation.Provider.IContentCmdletProvider (#14184) 2020-12-12 00:10:28 +05:00
Staffan Gustafsson 7944cf0873 Enable nullable: System.Management.Automation.Provider.IDynamicPropertyProvider (#14167) 2020-12-11 11:37:02 +05:00