public StorageManager(string basePath) { _basePath = basePath ?? new CoreConfig().StoragePath; if (!Directory.Exists(_basePath)) { Directory.CreateDirectory(_basePath); } }