It's more a feature request than an issue.
I wonder if some people are interested in this function.
For a particular project, (a file-based, static blog "engine"), I'd like to get data from the front matter, and rename my file accordingly (i.e. move a file to date folder/tree - yyyy/mm/dd/my-file.md)
My data is fed through the file object down the stream.
It'd be great if we could have a second parameter in the function passed to rename, where we could have the file object, and gain access to it. and do something like this:
It's more a feature request than an issue. I wonder if some people are interested in this function. For a particular project, (a file-based, static blog "engine"), I'd like to get data from the front matter, and rename my file accordingly (i.e. move a file to date folder/tree - yyyy/mm/dd/my-file.md) My data is fed through the file object down the stream.
It'd be great if we could have a second parameter in the function passed to rename, where we could have the file object, and gain access to it. and do something like this: