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
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
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
Kyle H
909ca89be9
The -Stream parameter now works with directories ( #13941 )
2020-12-07 17:31:55 -08:00
Ilya
2804576840
Avoid an exception if file system does not support reparse points ( #13634 )
2020-12-03 11:24:49 -08:00
xtqqczze
18717c529b
Enable IDE0075: SimplifyConditionalExpression ( #14078 )
...
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0075
2020-12-02 08:25:56 +05:00
xtqqczze
8d4869372e
Mark private members as static part 10 ( #14235 )
...
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/quality-rules/ca1822
2020-11-27 13:16:31 +05:00
xtqqczze
dc9ecd9a85
Use AsSpan/AsMemory slice constructor ( #14265 )
...
* Use AsSpan slice constructor
* Use AsMemory slice constructor
2020-11-27 13:05:41 +05:00
xtqqczze
d5b0264374
Use consistent spacing in xml documentation tags ( #14231 )
2020-11-25 22:58:52 +05:00
xtqqczze
c7bdb24ff3
Mark local variable as const ( #13217 )
...
RCS1118: Mark local variable as const https://github.com/JosefPihrt/Roslynator/blob/master/docs/analyzers/RCS1118.md
2020-11-24 20:06:16 +05:00
xtqqczze
cba73e724f
Enable SA1106: Code should not contain empty statements ( #13964 )
...
https://github.com/DotNetAnalyzers/StyleCopAnalyzers/blob/master/documentation/SA1106.md
2020-11-21 19:26:44 +05:00
xtqqczze
3ba61069b8
Enable IDE0054: Use compound assignment ( #13546 )
...
* Autofix IDE0054
https://docs.microsoft.com/en-us/dotnet/fundamentals/code-analysis/style-rules/ide0054-ide0074
2020-11-05 09:48:13 +05:00
xtqqczze
24facfb03d
Fix IDE0044: MakeFieldReadonly part 15 ( #13970 )
...
https://docs.microsoft.com/dotnet/fundamentals/code-analysis/style-rules/ide0044
2020-11-05 08:28:18 +05:00
xtqqczze
52ecb6d18e
Run dotnet-format to improve formatting of source code ( #13503 )
2020-11-04 11:13:56 -08:00
xtqqczze
88e706f3d7
Autofix RCS1068: Simplify logical negation ( #13555 )
2020-09-04 08:40:05 +05:00
xtqqczze
8f37cced70
Cleanup: remove duplicate words in comments ( #13539 )
2020-08-31 11:39:00 -07:00
Robert Holt
6a37eb9313
Update to .NET 5 preview 8 ( #13530 )
2020-08-31 10:38:05 -07:00
Ilya
4e2b6e9540
Process reparse points for Microsoft Store applications ( #13481 )
2020-08-27 11:51:19 -07:00
Robert Holt
213e5b7857
Suppress UTF-7 obsolete warnings ( #13484 )
2020-08-21 10:37:42 -07:00
James Truher [MSFT]
f8b9e8e9db
Create warnings when UTF7 is specified as an encoding ( #13430 )
2020-08-17 22:19:22 -07:00
xtqqczze
4597b41396
Use is not syntax where appropriate and remove unnecessary parentheses ( #13323 )
2020-07-31 16:41:59 -07:00
Dongbo Wang
4b9b0788ed
Revert "Use is null syntax ( #13277 )" ( #13322 )
...
This reverts commit 6c03776d74 .
2020-07-30 16:06:38 -07:00
xtqqczze
6c03776d74
Use is null syntax ( #13277 )
...
Replace `== null` with `is null`
2020-07-30 18:04:03 +05:00
Robert Holt
d3addeb3da
Fix Move-Item to support cross-mount moves on Unix ( #13044 )
2020-07-06 16:39:08 -07:00
xtqqczze
bd90f1921f
Code performance fixes ( #12956 )
...
* RCS1080: Use 'Count/Length' property instead of 'Any' method
* RCS1077: Optimize LINQ method call
* RCS1235: Optimize method call
2020-06-25 11:30:40 +05:00