* Path.cs (GetRandomFileName): Return filenames containing only
characters from the range [a..z0..9] as MS.NET does.
svn path=/trunk/mcs/; revision=89869
* Path.cs (GetDirectoryName): The paths returned from this routine
should be canonical, not just a substring. In addition to fixing
this, it also fixes#324742.
svn path=/trunk/mcs/; revision=88708
* Path.cs: Manually call FileStream and pass the new internal
FileOptions.1 flag that means "This is a temporary file, use 600
permissions".
* FileOptions.cs: Document the new private enum value.
svn path=/trunk/mcs/; revision=73771
* Path.cs (GetPathRoot): Return just the \\server\share
part of a UNC. Fixes#78147.
2006-04-28 Robert Jordan <[email protected]>
* PathTest.cs: Added tests for bug #78147.
svn path=/trunk/mcs/; revision=60033
* Path.cs: Fix c14n on Windows when the first separator after the root
isn't '\'. Fix problems for XSP with 1.1.13.
svn path=/trunk/mcs/; revision=55260
* DirectoryInfo.cs: Fixed#76903 where the Name property wasn't
correct in some cases. Added special case for Windows drives. Reduced
temporary allocations in Get* methods (removed ArrayList). Added some
new 2.0 methods (partial).
* MonoIO.cs: Removed InvalidPathChars icall as the return value is
different from 1.x and 2.0. The values are now defined in Path.cs.
* Path.cs: Fixed#76191 so that GetFullPath on a Windows drive returns
the current directory (if it's on the specified drive). Fixed 2.0 API
changes (e.g. static class).
* SearchOption.cs: Added missing [Serializable] (2.0).
svn path=/trunk/mcs/; revision=54456
* Directory.cs: Added a Demand for Read/Write when creating a new
directory.
* FileSystemInfo.cs: Added an InheritanceDemand for Unrestricted on
the class.
* Path.cs: Added a Demand for PathDiscovery in GetFullPath method.
Added an Assert for unrestricted file access to GetTempFilename as
the method must create the (zero-length) file and can be called from
partially trusted code. Added a Demand for unrestricted environment
access to GetTempPath method.
* FileStream.cs: Added a Demand for UnmanagedCode for all constructors
accepting a file handle. Added LinkDemand and InheritanceDemand for
UnmanagedCode to get Handle and SafeFileHandle (2.0) properties.
svn path=/trunk/mcs/; revision=42212
* Path.cs (Combine): Array.IndexOf is slow (because of the
special cases it must handle). So, rather than doing IndexOf
just check each type of seperator.
svn path=/trunk/mcs/; revision=33375
* Directory.cs: Reformat the whole file to use Unix line endings
for consistency.
(GetFileSystemEntries): If pattern is String.Empty, always
return an empty string array. Throw the ArgumentException if path
is an empty string (determined using the new helper method)
(IsEmptyString): Returns true on an empty string or a string with
only whitespace characters.
* Path.cs (GetPathRoot): Throw an ArgumentException if the path
argument is String.Empty.
svn path=/trunk/mcs/; revision=27990
* System.IO/Path.cs: add the trailing directory separator only for
volumes. Fixes bug #53035.
* Test/System.IO/PathTest.cs: tests for bug 53035 and 52735.
svn path=/trunk/mcs/; revision=22283
* Path.cs: Remove defined but unused variable, and also got rid of
some unreachable code. Eliminates some build warnings.
svn path=/trunk/mcs/; revision=21674
* Path.cs : Fixed GetFullPath() (and CanonicalizePath()),
HasExtension(), GetPathRoot() and IsPathRooted() to fit with tests.
svn path=/trunk/mcs/; revision=21489
* DirectoryInfo.cs: fixed bug #42991.
* Path.cs:
(CanonicalizePath): store the value of the trimmed input string. Make it
work with paths such as "/home/xxx/.".
svn path=/trunk/mcs/; revision=14585
* Path.cs
(GetPathRoot) Added support for UNC paths.
(CanonicalizePath) Added optimizations per Miguel's requests.
* PathTest.cs
Even more GetFullPath () tests. Includes UNC tests.
svn path=/trunk/mcs/; revision=14383
* BufferedStream.cs:
- Removed unusefull code.
- Added ObjectDisposedException to Position
- Dont flush if stream is allready closed.
- Flush throws also ObjectDisposedException.
* Directory.cs:
- GetFileSystemEtries: ArgumentNullException if pattern is null
* DirectoryInfo.cs: Fixed little MoveTo () bug.
* FileInfo.cs:
- Exists: If file does not exists when instance is created the
value of the Exists property does not change even if file is created
afterwards.
- Delete: If path is a directory UnauthorizedException is thrown.
- CopyTo: Now we can overwrite file if wanted.
* Path.cs:
- GetFullPath: Now throws exception when path is " ".
svn path=/trunk/mcs/; revision=14370
because we need to implement the method on Windows.
* Path.cs
(CanonicalizePath) Added new function to get
rid of . and .. in path names. Need to figure out what
other functions should call this.
(GetFullPath) Added call to the above function. Fixes
bug 42303
svn path=/trunk/mcs/; revision=14314
* DirectoryInfo.cs: changed ToString to match MS behavior.
* Path.cs: further fixes to GetDirectoryName to return null in the
same cases that MS does.
Fixes bug #38387.
svn path=/trunk/mcs/; revision=12105
* CheckArgument.cs: fixed check for empty string.
* Path.cs: various fixes. It passes all the tests in new PathTest.
svn path=/trunk/mcs/; revision=7137
* Path.cs (GetTempFileName): Make this routine atomic by not
testing and then creating, but using the create call to ensure
that we own the filename.
svn path=/trunk/mcs/; revision=7014
* 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
* Path.cs (GetDirectoryName): Return String.Empty if there is no
directory
* StreamReader.cs: Add some parameter checking on file names.
* StreamWriter.cs: Add some parameter checking on file names.
svn path=/trunk/mcs/; revision=4626
* 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