playMaker

Author Topic: Check If Folder Exists  (Read 193 times)

nuFF3

  • Junior Playmaker
  • **
  • Posts: 74
  • Are we even real?
    • View Profile
    • One Month Studio
Check If Folder Exists
« on: January 23, 2021, 10:50:24 AM »
I needed a way to check if a folder at a specific path exists, but there was no action like this on the Ecosystem, nor on the forums so I decided to make it myself.
It's essentially the same action as "Check If File Exists" that can be found on the Ecosystem, but with everything renamed to fit the new function it serves.

This action uses 'System.IO'

The action takes a string with the location of a potential folder. Example folder path: Assets/Resources
Can store result as a bool, true if folder exists or false if folder does not exist.
Option for sending an event if folder exists, and another event if folder does not exist.

Hope it comes in handy.


craigz

  • Beta Group
  • Full Member
  • *
  • Posts: 213
    • View Profile
    • Haven Made
Re: Check If Folder Exists
« Reply #1 on: February 12, 2021, 08:48:40 AM »
AH! This is wonderful! I remember digging around for something like this on an easy save forum (because there is the 'create directory' action on ecosystem)

Should definitely see if its possible to put this action on Ecosystem 🙏

Thank you for sharing 💪

- craigz