public long Length() { #if SILVERLIGHT return(SilverlightIO.Length(_path)); #else return(new FileInfo(_path).Length); #endif }
public bool Exists() { #if CF string path = RemoveTrailingSlash(_path); #elif SILVERLIGHT string path = _path; return(SilverlightIO.Exists(path)); #else string path = _path; #endif return(System.IO.File.Exists(path) || Directory.Exists(path)); }
public virtual bool Delete() { #if SILVERLIGHT return(SilverlightIO.Delete(_path)); #else if (Exists()) { System.IO.File.Delete(_path); return(!Exists()); } return(false); #endif }