Skip to main content

Create a temporary directory

Comments

2 comments

  • Ken Lyon

    That's an interesting idea. We do create temporary files/directories in certain activities. (I think Run Python for one.) It could be plausible to do something similar in isolation.

    It'd need to be .NET only. (Probably Workflow Server only, not sure about Mobile or Desktop.) I imagine creating something under %TEMP% and then the activity output being the directory path.

    There's a Path.GetTempFileName method that we use in some cases to get a unique name, delete the file and then create a directory by the same name. It's under %TEMP% so Windows can potentially clean it up later.

     

    0
  • Berend Veldkamp

    Yes, that's exactly what I had in mind. I had only thought about server workflows, but now that you mention it, I don't see any reason not to have it in Mobile as well. AFAIK Path.GetTempFileName works in UWP too, and otherwise there is ApplicationData.Current.TemporaryFolder 

    0

Please sign in to leave a comment.