Commit Graph
16 Commits
Author SHA1 Message Date
Jeremy Kuhne 3d70535133 Add the ability to specify case matching behavior for GetFiles (dotnet/corefx#26876)
Commit migrated from https://github.com/dotnet/corefx/commit/08dad51fac5f51eaa8fe19ae0997dd6bfb9706ec
2018-02-05 20:02:52 -08:00
Jeremy Kuhne b7ad3f9218 File enumeration extensibility (dotnet/corefx#26806)
* Windows file enumeration extensibility

This is the Windows implementation of System.IO.Enumeration. It adds
new find options to existing APIs and a public extensibilty model
for richer, low allocation file system enumeration.

The Unix implementation is in progress.

* Initial naive Unix implementation of FileSystemEnumerator

* Move a netcoreapp test to the right group

* Fix WinRT build.

* Address feedback from @danmosemsft

* Remove inline attribute

* Remove IsNameDotOrDotDot property

* Address futher feedback.

* Remove unreferenced common code


Commit migrated from https://github.com/dotnet/corefx/commit/66ada723c1b0ae9062a0e7b0b28862014b985019
2018-02-05 15:28:14 -08:00
Jon Hanna 2feef93820 Add async File.ReadAll*, File.AppendAll* and File.WriteAll
Fixes dotnet/corefx#11220


Commit migrated from https://github.com/dotnet/corefx/commit/8afa43291b97861020885b21572e23102841ade2
2017-01-23 21:55:50 +00:00
Santiago Fernandez Madero ce1b82e2b0 Add Replace methods to System.IO.FileInfo (dotnet/corefx#13563)
* Add Replace methods to System.IO.FileInfo


Commit migrated from https://github.com/dotnet/corefx/commit/2b0ce9c6f76cf2d68d79032f220cabe97eb4e676
2016-11-10 21:35:16 -08:00
Jeremy Kuhne 90d1f3d724 Update to CoreCLR FileStream (dotnet/corefx#13229)
* Json changes for updating to new CLR

* Take new CoreCLR

Uses new copy of FileStream from CoreCLR
Moves FileStream to System.Runtime
Forwards from old locations
Various workarounds/fixes

* Update to CoreCLR beta-24704-03


Commit migrated from https://github.com/dotnet/corefx/commit/bd667b3e719ff84110d9b3c8c087a678337aa5a5
2016-11-04 11:52:01 -07:00
Santiago Fernandez Madero a4bc3cea20 Adding MarshalByRefObject base class to types. (dotnet/corefx#12773)
* Adding MarshalByRefObject base class to types.

Commit migrated from https://github.com/dotnet/corefx/commit/93826ebec41822c49b833f56b4707f1c80b55659
2016-10-19 23:52:35 -07:00
Stephen Toub 8bc0c7486e Add System.IO.FileSystem serialization
Commit migrated from https://github.com/dotnet/corefx/commit/a8c26b8f37139e7b2fc25acd8859b1782319dcd6
2016-10-17 23:26:49 -04:00
Stephen Toub 52e3c3d7ae Change all refs to use "throw null;" as member bodies
Following our new guidelines for ref assembly implementations and what GenApi now creates, this updates all of our ref .cs files to use "throw null;" for member bodies that can't just be empty (i.e. members that need to return a value either via the return type or via an out parameter).  I made the change programatically using a simple Roslyn-based tool.


Commit migrated from https://github.com/dotnet/corefx/commit/a9fdc79ff8feb5ad46e9fcbe18fdffcd0bd74679
2016-10-13 09:43:23 -04:00
Koundinya Veluri 0dd80e4488 Expose some missing threading types/members (Timer, exceptions, etc.) (dotnet/corefx#12392)
- Expose: Timer members, some exception types and members, ThreadExceptionEventArgs/Handler, Monitor.Wait with exitContext parameter
- Move CriticalHandle and remaining types from System.Runtime.Handles to System.Runtime, expose CriticalHandle[ZeroOr]MinusOneIsInvalid
- Revert base class of safe handle types that used to derive from SafeHandle[ZeroOr]MinusOneIsInvalid, and upgrade those projects to ns1.7

Commit migrated from https://github.com/dotnet/corefx/commit/de8eee4b26f5154698fddcd150a4c7487a69da64
2016-10-12 18:31:26 -07:00
Jeremy Kuhne 12bee9bc55 Expose Begin/End methods on FileStream
Also add [Obsolete] to the Handle property


Commit migrated from https://github.com/dotnet/corefx/commit/729355a49293078e416bde888dfbbd7fb49e4a37
2016-09-22 21:33:40 -07:00
Stephen Toub abc4973a51 Add missing APIs to System.IO.FileSystem
Adds:
- File.WriteAllLines(string, string[])
- File.WriteAllLines(string, string[], Encoding)
- File.Replace(string, string, string)
- File.Replace(string, string, string, bool)
- File.Encrypt(string)
- File.Decrypt(string)
- FileInfo.Encrypt()
- FileInfo.Decrypt()
- FileStream.Handle
- FileStream.Lock(long, long)
- FileStream.Unlock(long, long)

Currently throws PlatformNotSupportedException from:
- Encrypt/Decrypt on all platforms.  These can be implemented on Win32, but the APIs needed are not currently exposed as allowed in buildtools.
- Lock/Unlock on Unix and WinRT.  These can be implemented on Unix; I just didn't in this commit.


Commit migrated from https://github.com/dotnet/corefx/commit/2fbc772ea8bd83a37b9f26c1a7c928a6be2d2c0b
2016-09-12 20:32:59 -04:00
Jeremy Kuhne 644299cdb6 Add Begin/End to FileStream.
Commit migrated from https://github.com/dotnet/corefx/commit/c31504af97642e9700b01258d72073fd91700298
2016-08-25 14:45:35 -07:00
Jeremy Kuhne 998ba23d56 Add GetLogicalDrives.
Commit migrated from https://github.com/dotnet/corefx/commit/3032cd204abd1f07058af805c5e57726eecfd621
2016-06-28 15:03:10 -07:00
stephentoub 685d9f5063 Add API review headers to ref files
Commit migrated from https://github.com/dotnet/corefx/commit/5240b324e50f9aabaa11d4b0c46acc34e370a724
2016-02-11 10:50:44 -05:00
dotnet-bot 39d1eab950 Update licensing headers
Commit migrated from https://github.com/dotnet/corefx/commit/7cad8486cbabbce0236bdf530e30db7036335524
2016-01-27 08:02:28 -08:00
Eric St. John 77309d4821 Update the version of all assemblies
This change updates the assembly versions of all of the corefx assemblies
as needed after we shipped stable versions.  Assemblies with API differences
get a minor version bump.  Assemblies with only bugfixes get a build version
bump.

In order to facilitate this I had to update the reference assemblies, so I took
the opportunity to port them all to the open.

[tfs-changeset: 1514419]


Commit migrated from https://github.com/dotnet/corefx/commit/40723b795917f2e98b64d45c17effb2546dd0cae
2015-08-13 17:07:57 -07:00