used to move files, patch by Robert Jordan. Fixes bug #81912. Spaces
to tabs.
* DirectoryCas.cs: Changed Move to MoveDirectory to match the
method in DirectoryTest. Fixed line endings.
* DirectoryTest.cs: Added test for bug #81912. Added tests for Move
argument checks.
svn path=/trunk/mcs/; revision=81599
* Directory.cs: CreateDirectory() should only throw IOException in
the 2.0 profile if a file already exists with the same name, not a
directory.
svn path=/trunk/mcs/; revision=67467
* Directory.cs: CreateDirectory() should throw IOException if a
file or directory with the same name already exists, in the 2.0
profile. Fixes bug 79806.
svn path=/trunk/mcs/; revision=67410
* Directory.cs: When creating a directory treat ERROR_FILE_EXISTS
(ie a file already exists with that name) the same as
ERROR_ALREADY_EXISTS (ie a directory already exists with that
name.) Keeps bug 50753 fixed when I fix the io-layer
CreateDirectory() behaviour.
2006-07-06 Dick Porter <[email protected]>
* DirectoryTest.cs: Test creating a directory when a file or
directory already exists with the requested name.
svn path=/trunk/mcs/; revision=62318
* Directory.cs : implemented GetFiles() and GetDirectories() which
takes SearchOption (as they are used in one of ruby.net stuff).
svn path=/trunk/mcs/; revision=61890
* Directory.cs: Return false (as documented) on ERROR_ACCESS_DENIED in
Exists() rather than throwing an exception. Bug #78239.
svn path=/trunk/mcs/; revision=60119
* Directory.cs: make sure the parent directory is not an empty string
when a file name with no path is provided. Fixes bug #78209. Patch by
Emery Conrad.
svn path=/trunk/mcs/; revision=60054
* MonoIO.cs: replace FindFirst/FindNext/FindClose with
GetFileSystemEntries.
* Directory.cs: simplify GetFileSystemEntries by using the new icall.
svn path=/trunk/mcs/; revision=51152
* 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
* Directory.cs: ERROR_FILE_NOT_FOUND in FindFirstFile means there are
no files, but the directory was found. Fixes bug #58875.
svn path=/trunk/mcs/; revision=28005
* 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
* Directory.cs: use the real wildcard for file names as it is supported
now in io-layer. SearhPattern is not needed now.
svn path=/trunk/mcs/; revision=26856
* Directory.cs: check if the error returned in Exists is different
from 'path not found' and throw the appropiate exception in that case.
See #55160.
svn path=/trunk/mcs/; revision=23701
* System/Environment.cs: use Directory in CurrentDirectory property.
We were not throwing any exception when setting the directory to an
invalid path.
* System.IO/Directory.cs:
(GetCurrentDirectory):
(SetCurrentDirectory): moved here from Environment. Handle error cases.
* System.IO/MonoIO.cs: add path to the default error message.
svn path=/trunk/mcs/; revision=20032
* Directory.cs: allow directory names without wildcards in the pattern.
Fixes bug #3 50969.
* SearchPattern.cs: made InvalidChars and WildcardChars internal.
svn path=/trunk/mcs/; revision=19990