Directory from path node as Code Block

Is possible to write a code block of the node Directory from path?


Screen Shot 2021-06-09 at 3.40.41 PM

yes, this calls the same function that the node will call.
you can see that here:

the node is going to have file watching capability that calling it directly will not though.