Added implementation for AddStorageGroupDir and RemoveStorageGroupDir.