2004-04-02 Dick Porter <dick@ximian.com>
[mono.git] / mcs / class / corlib / System.IO / FileInfo.cs
index 05ea30549691b5c39a618934a9e71b4b6050c21c..62e79d489ecaddc5de87f3afdfe67dfffc87037e 100644 (file)
@@ -18,15 +18,20 @@ namespace System.IO {
        public sealed class FileInfo : FileSystemInfo {\r
        \r
 
-                private bool exists = false;
+               private bool exists;
 
                public FileInfo (string path) {\r
                        CheckPath (path);\r
                \r
                        OriginalPath = path;\r
                        FullPath = Path.GetFullPath (path);
-                       exists = File.Exists (path);
                }\r
+               \r
+               internal override void InternalRefresh ()\r
+               {\r
+                       exists = File.Exists (FullPath);\r
+               }\r
+\r
 \r
                // public properties\r
 \r