* Actually use the SpecialFolderPathOptions where we need them
-> Create is acknowledged
-> DoNotVerify is ignored, as Mono historically did not throw an
exception on missing directories.
* Rename InternalGetFolderPath to UnixGetFolderPath as this is what it is.
* Fix existing references to the code
* Fix indentation in routine that was never properly formatted (ReadXdgUserDir)
* MoonIsolatedStorageFile.cs: Return true, instead of throwing a NIE,
for IsEnabled since this is the behavior for Silverlight 3 (i.e. always
enabled) even if the call is new in SL4 (but part of ML3 ;-)
IsolatedStorageFile.GetUserStoreForApplication() would previously throw an
IsolatedStorageException because no ApplicationIdentity was provided by the
AppDomain.
We would like to provide this method in a workable fashion to facilitate code
portability with Windows Phone 7, which exposes only this method for saving
files to stable storage.
Thus, skip the ApplicationIdentity and code identity checks for MOBILE
(MonoDroid, MonoTouch) so that IsolatedStorage Just Works.
* IsolatedStorageFile.cs: Remove should catch all the exceptions
caused by DirectoryInfo.Delete and throw an IsolatedStorageException
instead.
svn path=/trunk/mcs/; revision=159017
NotSupportedException.
* IsolatedStorageFileStream.cs: Implement Flush by calling the base impl.
2010-06-07 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=158612
error found in our System.IO classes as IsolatedStorageException.
2010-06-07 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=158593
* IsolatedStorageFile.cs: Update the exceptions we are firing in 4.0
for CreateDirectory, GetFileNames and GetDirectoryNames.
svn path=/trunk/mcs/; revision=158589
* IsolatedStorageFile.cs: Our 4.0 methods receiving a path should
either return false or throw an IsolatedStorageException if the path
refers to a directory outside the storage root.
svn path=/trunk/mcs/; revision=158566
* IsolatedStorageFile.cs: In CheckOpen check that the directory for
the current storage is still valid, and throw an exception if needed.
Also, in the static Remove method call Directory.Delete only if the
directory exists, to avoid throwing an exception there.
svn path=/trunk/mcs/; revision=158478
* IsolatedStorageFile.cs: Check for empty paths and existing paths in
both MoveFile and MoveDirectory, just as we do in CopyFile. Finally
cover our IO calls with a try-catch block, so all the IOException
instances are reported as IsolatedStorageException.
svn path=/trunk/mcs/; revision=158355
* IsolatedStorageFile.cs: Implement GetCreationTime, GetLastAccessTime
and GetLastWriteTime, as well as creating a single method to check for
the closed/disposed fields.
svn path=/trunk/mcs/; revision=158030
for diposed first, and for closed on second place.
* IsolatedStorageFile.cs: Add Obsolete to CurrentSize and MaximumSize,
as part of 4.0.
2010-05-24 Carlos Alberto Cortez <[email protected]>
svn path=/trunk/mcs/; revision=157816
* IsolatedStorageFileStream.cs: When creating our instance check that
the IsolatedStorageFile is not closed/disposed.
* IsolatedStorageFile.cs: Expose closed/disposed info as internal
properties, as well as implement 4.0 MoveDirectory/MoveFile, CreateFile
and OpenFile methods.
svn path=/trunk/mcs/; revision=157801
* IsolatedStorageFile.cs: Implement FileExists and DirectoryExists, as
well as adding fields to detect that Close/Dispose have been called
and fire the proper exceptions.
svn path=/trunk/mcs/; revision=157784
* IsolatedStorageFileEnumerator.cs
* MoonIsolatedStorageFileStream.cs
* MoonIsolatedStorageFile.cs
* MoonIsolatedStorage.cs
* IsolatedStorageScope.cs
* IsolatedStorageFileStream.cs
* IsolatedStorage.cs
* IsolatedStorageFile.cs:
Use the traditional net_2_0 version of isolated storage
for MonoTouch.
svn path=/trunk/mcs/; revision=140937
* MoonIsolatedStorageFile.cs: Add application and iste specific
initialization. Add rumenditary quota support (not thread or cross
process safe). Add a bunch of TODO & FIXME.
* MoonIsolatedStorageFileStream.cs: Add quota checks (delegated
into MoonIsolatedStorageFile).
svn path=/trunk/mcs/; revision=112762
* MoonIsolatedStorageFile.cs: Add calls to PreCheck inside EndRead
and EndWrite methods.
* MoonIsolatedStorageFileStream.cs: Throw an IsolatedStorageException
when DeleteFile is called on an unexisting file.
svn path=/trunk/mcs/; revision=112374
* MoonIsolatedStorageFile.cs: Implement Remove. Add a bunch of FIXME
mostly related to quota.
* MoonIsolatedStorageFileStream.cs: Add a call to the container's
PreCheck method in most methods. Add FIXME for quota.
svn path=/trunk/mcs/; revision=111394
* MoonIsolatedStorageFile.cs: Split Application and Site storage.
Start looking at quota.
* MoonIsolatedStorageFileStream.cs: Added more validation to
ctors. Removed IsAsync (not in beta2). (SetLength) Start using some
quota checks
svn path=/trunk/mcs/; revision=111308
* MoonIsolatedStorageFile.cs: Fix API to match SL2 beta2. Start
implementing new feature (while writing unit tests).
* MoonIsolatedStorageFileStream.cs: Add new async methods [Begin|
End][Read|Write] present in b2. Fix endless recursion in WriteByte.
svn path=/trunk/mcs/; revision=111152
* IsolatedStorageFile.cs: Fix CreateDirectory to accept multiple
subdirectories. Avoid leaking full path in DeleteDirectory. Fix
GetDirectoryNames to work with path (and the search pattern).
[Fix bug #376188]
svn path=/trunk/mcs/; revision=101172