mirror of https://github.com/milvus-io/milvus.git
22 lines
505 B
Python
22 lines
505 B
Python
|
import os, shutil
|
||
|
from engine.settings import DATABASE_DIRECTORY
|
||
|
|
||
|
class StorageManager(object):
|
||
|
@staticmethod
|
||
|
def CreateGroup(group_name):
|
||
|
path = StorageManager.GetGroupDirectory(group_name)
|
||
|
path = path.strip()
|
||
|
path=path.rstrip("\\")
|
||
|
if not os.path.exists(path):
|
||
|
os.makedirs(path)
|
||
|
|
||
|
@staticmethod
|
||
|
def GetGroupDirectory(group_name):
|
||
|
return DATABASE_DIRECTORY + '/' + group_name
|
||
|
|
||
|
def Read():
|
||
|
pass
|
||
|
|
||
|
def Write():
|
||
|
pass
|