Ilya
91bf34679c
Read special reparse points without accessing it ( #10662 )
...
* Enhance enum FileDesiredAccess with zero value GenericZero
* Use the GenericZero as desired access mode to read reparse point without access it
From docs:
If desired access is zero, the application can query certain metadata such as file, directory, or device attributes without accessing that file or device, even if GENERIC_READ access would have been denied
2019-10-03 19:41:18 +05:00
Ilya
79e80a8e06
Refactor reparse tag checks ( #10431 )
...
Reparse tag consts is absolute numbers, not flags so we should use a comparison instead of bit operations
2019-09-17 10:48:07 +05:00
Steve Lee
b0a3755b17
Minor fix for recursion into OneDrive - Change FindFirstFileEx() to use SafeFindHandle type ( #10405 )
2019-08-29 14:50:54 -07:00
Steve Lee
5974afaa8d
Add support for AppX reparse points ( #10331 )
2019-08-13 17:45:41 -07:00
Steve Lee
5bc3d15a30
Check if a reparsepoint is a symlink before trying to get target ( #9895 )
2019-07-08 11:40:53 +05:00
Ilya
dd7e45fe2e
Code cleanup: use IndexOf(char) overload ( #9722 )
...
- Use IndexOf(char) overload instead of IndexOf(string) to benefit from Ordinal search
- Replace IndexOf with Contains to get more understandable code
- Use StringComparison.Ordinal for ASCII chars
2019-06-26 11:02:07 +05:00
Ilya
74c87ab20b
Cleanup: Use EndsWith(char) and StartsWith(char) ( #9994 )
2019-06-25 11:02:31 -07:00
Steve Lee
981c990d74
Make UseAbbreviationExpansion and TempDrive official features ( #9872 )
2019-06-13 13:05:37 -07:00
Ilya
8bd16d13cb
Remove IsSymLink() P/Invoke on Unix ( #9534 )
2019-05-07 13:31:54 -07:00
Steve Lee
1d28144e99
Enable recursion into OneDrive ( #9509 )
2019-05-06 17:28:00 -07:00
Steve Lee
346ab8c9d4
Change MatchType for EnumerationOptions to be Win32 ( #9529 )
2019-05-06 17:20:08 -07:00
Ilya
bd6fdae735
Cleanup: sort usings ( #9490 )
2019-04-30 10:25:11 +05:00
Ilya
ceed73d737
Run Codeformatter for SMA ( #9402 )
2019-04-24 19:27:22 +05:00
Andrew
095be4655e
Return correct casing of filesystem path during normalization ( #9250 )
...
* return correct casing of filesystem path during normalization
* handle UNC case
* handle case to add trailing separator back
* add support for NTFS streams syntax
* add case-sensitive test
* only apply correct casing to directories
* handle 8.3 path syntax
* fix short path processing
2019-04-23 13:31:43 -07:00
Rene Hernandez
75da390d1e
Add ItemSeparator and AltItemSeparator properties in ProviderInfo ( #8587 )
...
Add two properties in `ProviderInfo` class: `ItemSeparator` and `AltItemSeparator`.
On windows, the default values for those two properties are `ItemSeparator = '\'` and `AltItemSeparator = '/'`.
On unix, the default values for those two properties are `ItemSeparator = '/'` and `AltItemSeparator = '\'`.
Registry provider is the only exception, both properties for it have the value `\`.
2019-04-02 09:59:36 -07:00
Steve Lee (POWERSHELL)
586084fb6b
fix short path processing
2019-04-01 12:05:45 -07:00
Steve Lee (POWERSHELL)
11f93c5a2b
handle 8.3 path syntax
2019-04-01 10:41:03 -07:00
Steve Lee (POWERSHELL)
9e7fe9a9d1
only apply correct casing to directories
2019-03-31 12:06:38 -07:00
Steve Lee (POWERSHELL)
f0264d0147
add support for NTFS streams syntax
2019-03-30 08:40:32 -07:00
Steve Lee (POWERSHELL)
a3f80e7e9b
handle case to add trailing separator back
2019-03-30 07:29:18 -07:00
Steve Lee (POWERSHELL)
bc4b1085d9
handle UNC case
2019-03-29 22:48:11 -07:00
Steve Lee
6bc2b55fdf
return correct casing of filesystem path during normalization
2019-03-29 13:22:52 -07:00
Reece Dunham
df37094092
Minor FileSystemProvider cleanup ( #9182 )
2019-03-24 22:07:25 +05:00
Staffan Gustafsson
9983297254
Removing Hardlink from Mode property in default file system format ( #8789 )
2019-03-12 15:49:16 -07:00
Reece Dunham
4cd6a3beb7
Fix CodeFactor brace style issues in FileSystemProvider ( #8992 )
2019-02-28 20:00:23 +05:00
Ilya
11ae24fcad
Cleanup dllimport ( #8847 )
2019-02-27 08:33:46 +05:00
Ilya
ff3edaa2e3
Fix lgtm issues ( #8843 )
...
Add some null checks
Remove unused code
2019-02-13 16:51:05 +05:00
Reece Dunham
0606c27cb0
Fix many instances of CodeFactor style issue A single-line comment must not be followed by a blank line ( #8825 )
2019-02-05 09:47:19 -08:00
Stéphane BARIZIEN
d032cb2c87
Expose file attributes of OneDrive placeholders ( #8745 )
2019-02-04 12:11:46 -08:00
Aditya Patwardhan
6ccbebda27
Improve check for developer mode by checking minimum required build number ( #8749 )
...
* Improve check for developer mode by checking minimum required build number
The test would fail if the developer mode is enabled but the machine has an older build than the minimum required build.
The change adds a check for the build version in the test.
* Update test/powershell/Modules/Microsoft.PowerShell.Management/New-Item.Tests.ps1
2019-01-25 13:14:29 -08:00
xtqqczze
863528881f
Use https in URLs where available ( #8622 )
...
Use https in URLS across the repository where the domain serves content by https.
2019-01-24 12:50:11 -08:00
Steve Lee
7e2cd7954f
Add the experimental feature for creating 'Temp:\' drive when FileSystemProvider initializes ( #8696 )
...
Adds Experimental Feature called `PSTempDrive` that, if enabled, creates a PSDrive called `Temp:` that maps to `[System.IO.Path]::GetTempPath()`.
2019-01-23 13:53:04 -08:00
Steve Lee
f7c25e8f7c
Update code to use single method to check if path is UNC ( #8680 )
...
update all checks if path is unc to one method
2019-01-23 09:37:45 -08:00
Ilya
d80154430d
Style: Change first char to upper in summary comments ( #8597 )
2019-01-09 13:07:40 -08:00
Steve Lee
d6000fdea8
Allow Windows users in developer mode to create symlinks without elevation ( #8534 )
2019-01-08 10:43:24 -08:00
Ilya
f95dae55f7
Style: Use the type aliases 'char' and 'bool' instead of 'Char' and 'Boolean' ( #8572 )
2019-01-07 11:40:07 -08:00
Ilya
b8f9532b41
Style: Use the type alias 'string' instead of 'String' in places that are appropriate ( #8573 )
2019-01-07 10:46:00 -08:00
Ilya
233b54ed65
Style: Add a space after "//" in comments and remove unneeded comments after "}" ( #8576 )
2019-01-05 17:51:20 -08:00
Ilya
1be3f4cc0e
Style: Add the ending period to the XML document texts ( #8577 )
2019-01-05 15:40:24 -08:00
Ilya
dfd2f69369
Style: Change 'String.' to 'string.' ( #8568 )
2018-12-31 20:44:16 +05:00
Ilya
56569b9315
Style: Replace String.IsNullOrEmpty with string.IsNullOrEmpty ( #8557 )
2018-12-31 15:10:15 +05:00
Ilya
7207db6360
Style: Convert to upper first char in <param> and <exception> doc tags ( #8556 )
2018-12-29 08:25:49 +05:00
Ilya
479fc64aff
Style: Add period before </param> and </exception> doc tags ( #8553 )
2018-12-28 16:39:06 +05:00
Ilya
871ce5696d
Style: Add period before returns doc tag ( #8535 )
...
- add period before "</returns>" doc tag
- remove extra space before "</returns>" doc tag
- convert first char after "<returns>" doc tag to upper case
2018-12-25 21:43:03 +05:00
Steve Lee
4af3068566
Code cleanup: Add space after closing brace where needed ( #8530 )
...
* Update TestService
* Update WebListener
* Update Controllers
* Update ExpTest
* Update MyApp
* Update Logic
* Update Logic
* Update MyApp
* Update Microsoft.Management.Infrastructure.CimCmdlets
* Update Microsoft.PowerShell.Commands.Diagnostics
* Update Microsoft.PowerShell.ScheduledJob
* Update Microsoft.WSMan.Management
* Update Microsoft.WSMan.Runtime
* Update ResGen
* Update TypeCatalogGen
* Update commands
* Update Eventing
* Update Reader
* Update utility
* Update ShowCommand
* Update trace
* Update WebCmdlet
* Update Common
* Update CoreCLR
* Update common
* Update format-object
* Update format-wide
* Update out-file
* Update out-printer
* Update out-string
* Update OutGridView
* Update LocalAccounts
* Update Commands
* Update security
* Update CoreCLR
* Update DscSupport
* Update engine
* Update help
* Update logging
* Update namespaces
* Update security
* Update utils
* Update config
* Update perfCounters
* Update tracing
* Update cmdletization
* Update other
* Update cim
* Update xml
* Update CoreCLR
* Update common
* Update DefaultFormatters
* Update out-console
* Update out-textInterface
* Update DisplayDatabase
* Update Utilities
* Update COM
* Update ComInterop
* Update CommandCompletion
* Update debugger
* Update ExperimentalFeature
* Update hostifaces
* Update interpreter
* Update lang
* Update Modules
* Update parser
* Update runtime
* Update client
* Update commands
* Update common
* Update fanin
* Update server
* Update WireDataFormat
* Update Binding
* Update Operations
* Update interface
* Update cmdletization
* Update cim
* Update management
* Update WindowsTaskbarJumpList
* Update msh
2018-12-24 11:20:06 +05:00
Dongbo Wang
289981a017
Change 'String' to 'string' for simple references ( #8519 )
2018-12-22 14:26:06 +05:00
Dongbo Wang
2bfbcd4f07
Remove empty lines; correct space on closing square brackets, negative signs, and generic brackets ( #8508 )
2018-12-21 12:23:04 +05:00
Dongbo Wang
ff227729d3
Remove comments after closing bracket ( #8503 )
2018-12-21 11:54:10 +05:00
Meir Blachman
b7b386d209
Remove comments after closing brackets ( #8344 )
2018-12-08 21:53:30 +05:00
Ilya
4e58ee6426
Cleanup '#if !CORECLR' code ( #8337 )
...
* NewWinEventCommand.cs
* CredSSP.cs
* WsManHelper.cs
* debugger.cs
* InternalHost.cs
* InitialSessionState.cs
* BaseTransportManager.cs
* Types_Ps1Xml.cs
* FileSystemProvider.cs
* Restore XmlResolver = null
2018-11-30 08:11:20 +05:00