diff --git a/Project/Sources/Classes/path.4dm b/Project/Sources/Classes/path.4dm index e91d1822..e6cf967d 100644 --- a/Project/Sources/Classes/path.4dm +++ b/Project/Sources/Classes/path.4dm @@ -25,7 +25,7 @@ Function resolve($path : Text) : Object If (Length:C16($path)=0) - return File:C1566("📄") + return DummyFile() End if diff --git a/Project/Sources/Classes/plist.4dm b/Project/Sources/Classes/plist.4dm index ce474734..30f3f9e4 100644 --- a/Project/Sources/Classes/plist.4dm +++ b/Project/Sources/Classes/plist.4dm @@ -17,7 +17,7 @@ Class constructor($file : 4D:C1709.File) Super:C1705() - This:C1470.file:=File:C1566("?") // A non existing file + This:C1470.file:=DummyFile() // A non existing file This:C1470.isConverted:=False:C215 This:C1470.isBinary:=False:C215 diff --git a/Project/Sources/Methods/DummyFile.4dm b/Project/Sources/Methods/DummyFile.4dm new file mode 100644 index 00000000..e2586ac3 --- /dev/null +++ b/Project/Sources/Methods/DummyFile.4dm @@ -0,0 +1,6 @@ +//%attributes = {} +#DECLARE() : Object + +return New object:C1471("path"; ""; "platformPath"; ""; "fullName"; ""; "name"; ""; "extension"; ""; \ +"exists"; False:C215; "isAlias"; False:C215; "isFolder"; False:C215; "isFile"; False:C215; "isWritable"; False:C215; "hidden"; False:C215; \ +"parent"; Null:C1517; "size"; 0; "modificationDate"; 0; "modificationTime"; 0; "creationDate"; 0; "creationTime"; 0) \ No newline at end of file diff --git a/Project/Sources/folders.json b/Project/Sources/folders.json index e07360f1..2092c2cc 100644 --- a/Project/Sources/folders.json +++ b/Project/Sources/folders.json @@ -608,6 +608,9 @@ "Pseudo-Class", "Tests" ], + "methods": [ + "DummyFile" + ], "classes": [ "coordinates" ]