We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If we use deep option as custom function we cannot control depth. May be we must provide number of depth to function arguments?
deep
For example:
const options = { deep: (entry: IReaddirEntry, depth: number) => ... };
The text was updated successfully, but these errors were encountered:
Good point. I'll plan to add a .depth property to the Stats object that's passed to the function.
.depth
Stats
For the time being though, you can determine the depth by the number of path separators in the .path property. Like this:
.path
var depth = stats.path.split('/').length;
Sorry, something went wrong.
Yeap, thanks for your answer! Now I use similar code snippet, but will be cool if this property will be available in the Stats object.
Sent from my Xiaomi Redmi Note 4X using FastHub
9a950af
No branches or pull requests
If we use
deep
option as custom function we cannot control depth. May be we must provide number of depth to function arguments?For example:
The text was updated successfully, but these errors were encountered: