Implementing System.IO.File.Replace
*File.cs: Add implementation for IO.File.Replace methods.
*MonoIO.cs: Declared an internal call for ReplaceFile
*FileTest.cs: Added a test for IO.File.Replace.
Code is contributed under MIT/X11 license.
svn path=/trunk/mcs/; revision=84485
* File.cs: Add stubs for Encrypt and Decrypt that throws
NotSupportedException just like non-NTFS file systems would with MS.
Remove nested #if NET_2_0.
* FileInfo.cs: Add stubs for Encrypt and Decrypt that throws
NotSupportedException just like non-NTFS file systems would with MS.
svn path=/trunk/mcs/; revision=69956
* DirectoryInfo.cs (GetFiles): Implement option with SearchOptions
== AllDirectories
And a lot of MonoTODOs updated as well
svn path=/trunk/mcs/; revision=67998
IOException if specified path does not exist. Fixes bug #77641.
* FileTest.cs: In 2.0 profile, no longer expect IOException when path to
non-existing directory or file is specified in Get***Time(Utc) methods
(bug #77641). Renamed tests and removed trailing tabs. Removed
duplicate test. Fixed GetLastWriteTime(Utc) tests that used
GetLastAccessTime(Utc) instead of GetLastWriteTime(Utc).
* DirectoryTest.cs: No longer expect IOException when path to
non-existing directory or file is specified in Get***Time(Utc) methods
(bug #77641).
svn path=/trunk/mcs/; revision=57338
2006-01-12 Ben Maurer <[email protected]>
* FileTest.cs: Tests tests for read/writealltext.
In System.IO:
2006-01-12 Ben Maurer <[email protected]>
* File.cs: Support for Read/WriteAllText
svn path=/trunk/mcs/; revision=55475
* Dictionary.cs: Remove the `Hash' name from the Dictionary
internal classes, make them public.
2005-05-26 Miguel de Icaza <[email protected]>
* File.cs (ReadAllBytes): add.
svn path=/trunk/mcs/; revision=45058
2005-05-06 Ben Maurer <[email protected]>
* FileTest.cs (OpenAppend): Test for #71088.
In System.IO:
2005-05-06 Ben Maurer <[email protected]>
* File.cs (Open): If a stream is opened with Append access, you
only want Write access. Fixes bug #71088.
svn path=/trunk/mcs/; revision=44163
* Test/System.IO/FileTest.cs: test for invalid characters in file names.
* System.IO/File.cs: Exists does not throw when there are invalid
characters in the file name.
* System.IO/MonoIOError.cs: uncommented INVALID_NAME.
svn path=/trunk/mcs/; revision=40208
* File.cs: Added Gettextification, provide a better error message
for #62112
2004-09-08 Miguel de Icaza <[email protected]>
* Locale.cs: Added overload that calls String.Format.
svn path=/trunk/mcs/; revision=33597
* CheckPermission.cs:
* File.cs:
* FileInfo.cs:
* MonoIO.cs:
* FileStream.cs: Give the filename when throwing
FileNotFoundException. Fixes bug 61120, based on patch from
Carlos Alberto Cesario <[email protected]>.
svn path=/trunk/mcs/; revision=30744
* File.cs: File.Move() should check that the destination doesn't
already exist. Fixes bug 60915, patch based on one from Carlos
Alberto Cesario <[email protected]>.
svn path=/trunk/mcs/; revision=30741
is a directory.
* MonoIO.cs: In ExistsDirectory, return ERROR_PATH_NOT_FOUND instead of
ERROR_FILE_NOT_FOUND, since we are looking for a directory, not a file.
svn path=/trunk/mcs/; revision=24527
* Directory.cs: clean up --> performance improvment. Some exceptions
are now checked in File.cs.
* File.cs: Implemented Get/SetXXXTimeUtc () methods. Some bugfixes.
svn path=/trunk/mcs/; revision=13903
* FileStream.cs: Fix buffering properly this time. Also kludge
around broken pipe errors, treating them as EOF instead of
throwing an IO exception.
* MonoIO.cs: Return the error status in a parameter, as the
GetLastError() value has long since been blown away if we try and
look it up in a subsequent internal call invocation.
* Process.cs:
* Environment.cs:
* FileSystemInfo.cs:
* FileInfo.cs:
* File.cs:
* Directory.cs: MonoIO methods now have an error parameter
2002-10-31 Dick Porter <[email protected]>
* list.unix: Added MonoIO and MonoIOError to the build
svn path=/trunk/mcs/; revision=8712
* Environment.cs: Implemented OSVersion property.
2002-08-21 Miguel de Icaza <[email protected]>
* Path.cs (GetDirectoryName): Fix for filenames with size = 1
* File.cs: Removed all references that threw exceptions when the
paths contains a colon, as this is a valid part of an identifier
on Unix.
Everywhere: The String.Empty return from GetDirectoryName means
that there is no directory information about the path.
svn path=/trunk/mcs/; revision=6868
* File.cs: Add parameter checks to most methods. Not completely done,
but all current unit tests pass.
* Path.cs: Implement GetTempFileName().
svn path=/trunk/mcs/; revision=4621
corlib/
* corlib.build: removed seperate windows/linux builds. excluded
wrapper and PAL classes from all builds.
corlib/System/
* Console.cs: Modified to get std handles from MonoIO.
* Environment.cs: removed PAL dependencies.
corlib/System.IO/
* Directory.cs, File.cs, FileSystemInfo.cs, FileInfo.cs,
DirectoryInfo.cs, Path.cs: Modified to use MonoIO class instead of
wrapper and PAL classes.
* MonoIO.cs, MonoIOStat.cs, MonoIOError.cs: Added.
svn path=/trunk/mcs/; revision=3379
* Unix/Errno.cs: Added
* Unix/Wrapper.cs: Updated to new Wrapper
2002-01-23 Miguel de Icaza <[email protected]>
* FileInfo.c (CopyTo, MoveTo): Implement.
* FileStream.cs: Add argument checking to the constructor.
* File.cs: Rewrote most of the file. Implement Copy, Open, Create,
OpenText, OpenWrite, Move. Made pending methods flagged as MonoTODO.
* Directory.cs (Delete): reimplement without using DirectoryInfo.
(Delete): Implement the recursive version.
(GetCreationTime, GetLastWriteTime, GetLastAccessTime): Implement.
(Move): Reimplement.
(getNames): dead code removal.
* Path.cs: define an internal DirectorySeparatorStr that we use in
a few spots.
* Wrapper.cs: Updated to new version.
* DirectoryInfo (Delete): Implement using the Directory API.
2002-01-23 Miguel de Icaza <[email protected]>
* DateTime.cs (UnixEpoch): The Begining of the Unix epoch.
svn path=/trunk/mcs/; revision=2138
for errors because the status line that says No Errors found "lies"
Fixed the compiler errors and vow to be more careful with copy/paste
svn path=/trunk/mcs/; revision=583