Better server-side enforcement of relationship between folder parent and folder type