Jump to content

How do I use "File Utility"?

Recommended Posts

I want to start a workflow with a hotkey, then check if the specified filename exists, and create the file if it doesn't exist, and append the content if it does.

After reading the help, I feel the "File Utility" is what I want - but I don't know how to pass the filename to it?

I hope I can get an example or an answer, thanks!

Link to comment
1 minute ago, elviscai said:

but want to decide what to write to the file based on whether the file exists or not.


Which you can accomplish with multiple Write File Output. It has a builtin conditional to Skip, Overwrite, or Append depending on if the file exists. What you’re trying to do is an extra step.

Either way, for the File Utility you give it the file’s path from the preceding node. If you’re using a Hotkey, set Argument to Text and paste the full file path there.

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...