If / Else for device flag, creating first folder