Test for Cloud Folder?

Is there a way of testing from within a script whether a folder is a cloud folder?