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
PRASOON KARUNAN V
f59353d5d9
Error message enhancement for clear-content cmdlet when targeting a directory ( #8134 )
2018-11-01 08:56:45 +05:00
Ilya
ecb467c791
Use DefaultPathSeparator char instead of DefaultPathSeparatorString ( #8082 )
...
In:
* SessionStateLocationAPIs
* FileSystemProvider
* LocationGlobber
* NavigationProviderBase
2018-10-31 08:26:15 +05:00
Steve Lee
b27380dc51
Enable case-insensitive tab completion for files and folders on case-sensitive filesystem ( #8128 )
2018-10-28 09:48:49 +05:00
Staffan Gustafsson
3e4fa87901
Add a path for checking ZoneInformation without throwing an exception ( #8025 )
2018-10-24 09:34:15 +05:00
Steve Lee
082c3b0bae
Enable Add-Content to share read access to other tools while writing content ( #8091 )
2018-10-23 16:27:53 -07:00
PRASOON KARUNAN V
e6702fe780
Get/Add-Content throws improved error when targeting a container ( #7823 )
2018-09-28 20:36:13 +05:00
ThreeFive-O
4e98f244fd
Add unified attribute for completion for Encoding parameter. ( #7732 )
...
Provide a tab completion attribute (ArgumentEncodingCompletionsAttribute) for an Encoding parameter.
This PR should fix the duplicated code warning in CodeFactor
2018-09-11 09:26:12 +05:00
Ilya
b8fb55340d
Cleanup FileSystemProvider from runtime checks ( #7655 )
...
Replace runtime checks with compile time checks.
Remove unneeded methods.
2018-09-09 00:40:06 +05:00
Ilya
5d03e1653a
Remove empty xml comment lines ( #7401 )
2018-08-01 10:39:13 +05:00
Steve Lee
b767d5cacd
Fix IsHardLink() to return false instead of throwing exception when unable to determine ( #7355 )
2018-07-26 10:08:38 -07:00
Ilya
e3854815ab
Cleanup: replace 'Utils.FileExists()/DirectoryExists()/ItemExists()' with .NET methods ( #7129 )
2018-07-25 10:02:09 -07:00
Steve Lee
06960346a1
Enable UseShellExecute on all platforms ( #7198 )
...
Previously, we limited use of UseShellExecute when starting a new process to only Windows Desktop. However, CoreFx now supports UseShellExecute (appropriately calling `open` on macOS and `xdg-open` on Linux) so we can have a consistent code and remove some of the existing redundant code or unnecessary limiting code.
2018-07-02 12:50:19 -07:00
Ilya
0a3555064a
Use .Net Core File.Delete() method to remove symbolic links and alternate streams ( #7017 )
...
.Net Core support processing symbolic links and alternate streams, and thus we can remove our P/Invoke code.
2018-07-01 00:08:28 -07:00
Ilya
4fc784e840
Bulk update code base to put 'null' on the right-hand-side of a comparison expression ( #6949 )
2018-06-25 14:37:09 -07:00
Ilya
81244fb907
Avoid calling native APIs to check for existence of FileSystem items ( #6929 )
...
- Use File.GetAttributes() instead of p/invokes to check for existence of FileSystem items. The method throws access exceptions which we use for better error messages.
- Remove the word 'Native' from method names.
2018-06-14 11:35:44 -07:00
Dongbo Wang
9804ae5f97
Merge the v6.1.0-preview.3 release branch to master ( #7060 )
2018-06-13 15:59:27 -07:00
Ilya
e177fcaef6
CodeFactor code style cleanup: replace literal empty strings with 'string.Empty' ( #6950 )
2018-06-12 12:30:10 -07:00
Aditya Patwardhan
0d67d4dc3a
Merged PR 3115: Use Directory.CreateDirectory instead of DirectoryInfo.CreateSubDirectory
...
Change to use Directory.CreateDirectory because of regression introduced by https://github.com/dotnet/corefx/pull/27810 in creating a subdirectory under root path.
2018-06-11 23:06:08 +00:00
Christoph Bergmeister
fa544c33db
Update links that contain 'en-us' culture ( #7013 )
...
Update links that contain 'en-us' culture to remove 'en-us' culture (if possible) and in some cases update to newer re-directed link to docs.microsoft.com
2018-06-08 10:49:03 +05:00
Dongbo Wang
0b32d0c04b
[Feature] Minor update on 'GetFileSystemItem' ( #6984 )
2018-06-05 09:51:04 +05:00
Ilya
57b3d3380b
Cleanup FileSystem provider ( #6909 )
...
The cleanup is coming from a code review to cleanup psl. Here we clean up the side branch of the code that will allow later to clean up a branch which uses psl.
- IO.FileInfo does not make system calls in constructor. So we can create the object and then use the required attributes without direct call IO.FileInfo.GetAttributes() ( SafeGetFileAttributes() ). This allow us to exclude some p/invoke calls in our code in later cleanups. Also we get unified code for both Windows and Unix.
- Remove SafeGetFileAttributes() and WinSafeGetFileAttributes(). Currently .Net Core support file attributes on all platforms in fastest way and we can remove our workaround. We get a regression in rare case (for files like pagefile.sys). Fix is ready in CoreFX, we get it in 2.1.1. I suggest ignore the regression because this is a very-very rare situation (Get-ChildItem c:\pagefile.sys -Hidden). The .Net Core team was not even able to create an artificial test for such files and uses a real pagefile.sys file for the test. Also the enumeration is still working (dir c:\ -hidden).
- Re-add test which we lost in #4050 . The test is pending because of the regression.
2018-06-04 10:00:56 +05:00
kwkam
ac53dff089
Minor code clean-up changes ( #5737 )
2018-03-13 11:18:49 -07:00