Playmaker Forum

PlayMaker Updates & Downloads => Share New Actions => Topic started by: nuFF3 on January 23, 2021, 10:50:24 AM

Title: Check If Folder Exists
Post by: nuFF3 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.

(https://i.imgur.com/GBMVQEO.png)
Title: Re: Check If Folder Exists
Post by: craigz 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