Commit Graph
29 Commits
Author SHA1 Message Date
Miguel de Icaza 2852ed0b59 Update copyrights 2011-09-13 18:26:13 -04:00
Atsushi Eno 0a23442387 Fix invalid path check for Windows regarding ':'. 2011-08-31 14:10:43 -07:00
Sebastien Pouliot eebe81e4e0 2010-04-21 Sebastien Pouliot <[email protected]>
* FileSystemInfo.cs: Ensure elevated trust when calling [Creation
	|LastAccess|LastWrite]Time setters

svn path=/trunk/mcs/; revision=155872
2010-04-21 13:25:55 +00:00
Miguel de Icaza 0204abe803 Drop more obsolete defines
svn path=/trunk/mcs/; revision=144304
2009-10-17 01:35:27 +00:00
Sebastien Pouliot 3b3c977ed0 2008-08-21 Sebastien Pouliot <[email protected]>
* FileStream.cs: Adjust exception being thrown for Silverlight 2.0.
	* FileSystemInfo.cs: In Silverlight 2 this type does not inherit from 
	MarshalByRefObject nor does it implement ISerializable.
	* Stream.cs: In Silverlight 2 this type does not inherit from 
	MarshalByRefObject.
	* TextReader.cs: In Silverlight 2 this type does not inherit from 
	MarshalByRefObject.
	* TextWriter.cs: In Silverlight 2 this type does not inherit from 
	MarshalByRefObject.
	* UnmanagedMemoryStream.cs: For Silverlight 2 add CLSCompliant(false)
	to the PositionPointer property.


svn path=/trunk/mcs/; revision=111271
2008-08-21 15:40:33 +00:00
Gert Driesen 5d4e8d2ce4 * DirectoryInfo.cs: Added new internal ctor, which takes a bool that
indicates whether the original path should only container the last
part of the directory. Moved logic for determining the Name and
Parent to Initialize method, to allow it to be re-used on
deserialization. Renamed argument names to fix corcompare issues.
Added missing argument checks.
* Directory.cs (CreateDirectoriesInternal): Use internal ctor for
DirectoryInfo to ensure OriginalPath only contains last part of
the directory.
* File.cs: Removed redundant checks from Create. On 2.0 profile, pass
FileOptions to FileStream. Removed redundant directory check from
Delete and modified exceptions to more closely match MS.
* FileInfo.cs: Added argument check to ctor to match MS. Added missing
deserialization ctor. Modified argument checks in MoveTo, and removed
redundant checks. Added missing argument checks in CopyTo. Code
formatting.
* FileSystemInfo.cs: Modified argument checks in CheckPath to more
closely match MS.
* MonoIO.cs: Added msg that does not disclose filename for
ERROR_FILE_EXISTS.
* Path.cs: Use String.Length instead of comparing with String.Empty.
Removed exceptions argument names to match MS.
* File.cs: Added/improved tests for Create and Move.
* DirectoryInfoTest.cs: No longer derive from deprecated Assertion
class. Improved tests for ctor, Create, Name, Parent, ...
* FileInfoTest.cs: No longer derive from deprecated Assertion class.
Improved/added tests, 
* PathTest.cs: Added tests for IsPathRooted and GetFullPath.
* FileSystemInfoTest.cs: Fixed test. Now passes on both Mono and MS.

svn path=/trunk/mcs/; revision=101006
2008-04-17 15:04:25 +00:00
Sebastien Pouliot 62b7171499 2005-07-02 Sebastien Pouliot <[email protected]>
* FileSystemInfo.cs: Fixed exception arguments. Added ComVisible for
	NET_2_0.
	* DirectoryInfo.cs: Fixed bug #75443 when the directory ends with a
	separator. Added ComVisible for NET_2_0. Normalized line endings.


svn path=/trunk/mcs/; revision=46879
2005-07-02 15:28:45 +00:00
Sebastien Pouliot c9c4705f66 2005-03-24 Sebastien Pouliot <[email protected]>
* 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
2005-03-24 14:12:01 +00:00
Ben Maurer 050befc708 In Test/System.IO:
2004-12-04  Ben Maurer  <[email protected]>

	* DirectoryInfoTest.cs: Check for CreateSubdirectory with empty string.

In System.IO:
2004-12-04  Ben Maurer  <[email protected]>

	* DirectoryInfo.cs (CreateSubDirectory): Check the input here.
	
	* FileSystemInfo.cs (CheckPath): Empty paths are invalid.


svn path=/trunk/mcs/; revision=37135
2004-12-05 02:38:06 +00:00
Duncan Mak 13d1764537 Add license and copyright to all source files in corlib
svn path=/trunk/mcs/; revision=29249
2004-06-11 02:09:36 +00:00
Dick Porter 9ce3c08653 2004-05-27 Dick Porter <[email protected]>
* FileSystemInfo.cs: Take out the error checking in Refresh(), it
	broke other stuff

svn path=/trunk/mcs/; revision=28299
2004-05-27 18:44:14 +00:00
Dick Porter d024688825 2004-05-27 Dick Porter <[email protected]>
* MonoIO.cs: Define icalls for Lock() and Unlock()

	* FileStream.cs: Implement Lock() and Unlock().  Also improve IO
	error reporting.

	* FileSystemInfo.cs:
	* File.cs:
	* Directory.cs: Improve IO error reporting

svn path=/trunk/mcs/; revision=28285
2004-05-27 16:25:27 +00:00
Gert Driesen f5c6d93f3a * FileSystemInfo.cs: corrected COM visibility of UTC properties
svn path=/trunk/mcs/; revision=25355
2004-04-12 09:30:54 +00:00
Gert Driesen 38f5601f7d * FileSystemInfo.cs: Implemented ISerializable.
svn path=/trunk/mcs/; revision=25354
2004-04-12 09:19:24 +00:00
Lluis Sanchez b1f6ebcee7 * FileSystemInfo.cs: Added InternalRefresh, a virtual method that derived
classes can override to perform class specific refreshing.
	* FileInfo.cs: Refresh existence flag when Refresh is called.
	* TextWriter.cs: Applied patch by Benjamin Jemlich for bug #52512.
	  The method Write(char) should do nothing by default.

svn path=/trunk/mcs/; revision=24901
2004-04-01 13:29:53 +00:00
Nick Drochak a2ea144248 2003-06-18 Nick Drochak <[email protected]>
* FileSystemInfo.cs: Refresh cache when changeing file times.

svn path=/trunk/mcs/; revision=15481
2003-06-18 15:04:28 +00:00
Ville Palo 5d5db19925 2003-05-08 Ville Palo <[email protected]>
* FileSystemInfo.cs: Added 1.1 properties LastAccessTimeUtc,
	LastWriteTimeUtc and CreationTimeUtc

svn path=/trunk/mcs/; revision=14393
2003-05-08 19:05:01 +00:00
Dick Porter 542709a35c 2002-10-31 Dick Porter <[email protected]>
* 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
2002-10-31 15:55:48 +00:00
Piers Haken 610d7923ac added missing [Serializable] attribute
svn path=/trunk/mcs/; revision=3540
2002-04-01 20:22:40 +00:00
Dan Lewis d6e7b06471 2002-03-27 Dan Lewis <[email protected]>
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
2002-03-27 00:51:39 +00:00
Miguel de Icaza 96b7ca21ac 2002-01-23 Miguel de Icaza <[email protected]>
* DirectoryInfo.cs (GetFiles, GetDirectories, GetFileSystemInfos,
	Delete, Create, Parent, Exists, MoveTo): Implement.

	* Directory.cs (GetListing): implement new utility function.
	(GetDirectories): Implement.
	(GetFileSystemEntries): Implement.
	(GetFiles): Implement.

	* CheckArgument.cs (Path): Do not allow null by default.

2002-01-23  Miguel de Icaza  <[email protected]>

	* Unix/Wrapper.cs: Updated to new Wrapper

svn path=/trunk/mcs/; revision=2132
2002-01-23 20:05:45 +00:00
Ravi Pratap M de8d750995 2002-01-04 Ravi Pratap <[email protected]>
* CheckArgument.cs, CheckPermission.cs, Directory.cs: MonoTODO
	attribute decorations.

	* DirectoryInfo.cs, File.cs, FileInfo.cs, FileSystemInfo.cs,
	Path.cs, TextReader.cs, TextWriter.cs : Ditto.

	* FileLoadException.cs, FileNotFoundException.cs, StreamReader.cs:
	Ditto.

svn path=/trunk/mcs/; revision=1832
2002-01-04 15:46:38 +00:00
Miguel de Icaza 61634984c6 Some warning reduction:
2001-10-07  Miguel de Icaza  <[email protected]>

	* Exception.cs: Implement bits of serialization.

	* RuntimeFieldHandle.cs: Implement Serialization features.

	* Type.cs: Implement TypeHandle property.

2001-10-07  Miguel de Icaza  <[email protected]>

	* AssemblyBuilder.cs: Reformatted.

	Added override keywords to those that needed them.

	Removed methods that we do not override, but just inherit

2001-10-07  Miguel de Icaza  <[email protected]>

	* Encoding.cs, UTF8Encoding.cs, UTF7Encoding.cs, ASCIIEncoding.cs,
	UnicodeEncoding.cs: Corrected API.

	* UTF8Encoding.cs: Checked in changes from Rafael.

svn path=/trunk/mcs/; revision=1113
2001-10-07 01:39:01 +00:00
Sean MacIsaac 6d11b05caa Removing old build files. NAnt doesn't use them.
svn path=/trunk/mcs/; revision=969
2001-09-26 09:11:29 +00:00
Jim Richardson 08ba173da1 added additional implementation
svn path=/trunk/mcs/; revision=778
2001-09-10 09:09:07 +00:00
Miguel de Icaza e6dccbce05 Added piles of new enumerations from Sergey.
Updates the enumerations to contain [Flags] (Sergey)
Updated enumerations to have the same values as ECMA (Sergey).
Added various new methods to Type.cs
Added all the classes that were not being compiled in the past to the build.
Fix various small typos to get things compiling

Miguel

svn path=/trunk/mcs/; revision=702
2001-09-02 17:50:38 +00:00
Jim Richardson d8fc82a8da I suppose it helps when using CodeWright with C# to look at the output
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
2001-08-23 01:16:08 +00:00
Jim Richardson a986601643 Implemented various methods that were previously just do nothing stubs.
Verified compilation and added files to common.src

svn path=/trunk/mcs/; revision=577
2001-08-23 00:00:46 +00:00
Jim Richardson fa145bef84 Added stubbed implementations for classes.
svn path=/trunk/mcs/; revision=476
2001-08-14 02:30:47 +00:00