Skip to content

Commit

Permalink
penis
Browse files Browse the repository at this point in the history
  • Loading branch information
moxie-coder authored Sep 3, 2023
1 parent a74d3be commit 80b509f
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:Dynamic<String>)
inline static public function iterateDirectory(Directory:String, Func:String->Void)
{
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:Dynamic<String>):Bool
inline static public function iterateDirectory(Directory:String, Func:String->Void):Bool
{
if (!FileSystem.exists(Directory) || !FileSystem.isDirectory(Directory))
return false;
Expand Down

1 comment on commit 80b509f

@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.

look at that I guessed right

Please sign in to comment.