Skip to content

Commit

Permalink
I could be wrong here
Browse files Browse the repository at this point in the history
  • Loading branch information
moxie-coder authored Sep 3, 2023
1 parent a569854 commit a74d3be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/Paths.hx
Original file line number Diff line number Diff line change
Expand Up @@ -317,7 +317,7 @@ class Paths
return pathMap;
}

inline static public function iterateDirectory(Directory:String, Func)
inline static public function iterateDirectory(Directory:String, Func:Dynamic<String>)
{
var dir:String = Directory.endsWith("/") ? Directory.substr(0, -1) : Directory; // remove ending slash

Expand All @@ -328,7 +328,7 @@ class Paths
Func(i);
}
#else
inline static public function iterateDirectory(Directory:String, Func):Bool
inline static public function iterateDirectory(Directory:String, Func:Dynamic<String>):Bool
{
if (!FileSystem.exists(Directory) || !FileSystem.isDirectory(Directory))
return false;
Expand Down

1 comment on commit a74d3be

@moxie-coder
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

revert if it breaks, I can’t since I’m on an iPad and about to sleep

Please sign in to comment.