コード例 #1
0
ファイル: utils_tests.py プロジェクト: Seccion7/dep-CAPEv2
 def test_multiple_folders(self):
     """Tests multiple folders creation."""
     utils.create_folders(self.tmp_dir, ["foo", "bar"])
     assert os.path.exists(os.path.join(self.tmp_dir, "foo"))
     assert os.path.exists(os.path.join(self.tmp_dir, "bar"))
     os.rmdir(os.path.join(self.tmp_dir, "foo"))
     os.rmdir(os.path.join(self.tmp_dir, "bar"))
コード例 #2
0
ファイル: utils_tests.py プロジェクト: Missuniverse110/cuckoo
 def test_multiple_folders(self):
     """Tests multiple folders creation."""
     utils.create_folders(self.tmp_dir, ["foo", "bar"])
     assert os.path.exists(os.path.join(self.tmp_dir, "foo"))
     assert os.path.exists(os.path.join(self.tmp_dir, "bar"))
     os.rmdir(os.path.join(self.tmp_dir, "foo"))
     os.rmdir(os.path.join(self.tmp_dir, "bar"))
コード例 #3
0
ファイル: startup.py プロジェクト: nelsont/cuckoo
def create_structure():
    """Creates Cuckoo directories."""
    folders = ["log", "storage", os.path.join("storage", "analyses"), os.path.join("storage", "binaries")]

    try:
        create_folders(root=CUCKOO_ROOT, folders=folders)
    except CuckooOperationalError as e:
        raise CuckooStartupError(e)
コード例 #4
0
ファイル: startup.py プロジェクト: rajrakeshdr/test_AV
def create_structure():
    """Creates Cuckoo directories."""
    folders = ["db", "log", "storage", "storage/analyses", "storage/binaries"]

    try:
        create_folders(root=CUCKOO_ROOT, folders=folders)
    except CuckooOperationalError as e:
        raise CuckooStartupError(e)
コード例 #5
0
ファイル: startup.py プロジェクト: Fuitad/cuckoo-1
def create_structure():
    """Creates Cuckoo directories."""
    folders = ["db",
               "log",
               "storage",
               "storage/analyses",
               "storage/binaries"]

    create_folders(root=CUCKOO_ROOT,folders=folders)
コード例 #6
0
ファイル: startup.py プロジェクト: tsarpaul/CAPE
def create_structure():
    """Creates Cuckoo directories."""
    folders = [
        "log",
        "storage",
        os.path.join("storage", "analyses"),
        os.path.join("storage", "binaries"),
        os.path.join("data", "feeds"),
    ]

    try:
        create_folders(root=CUCKOO_ROOT, folders=folders)
    except CuckooOperationalError as e:
        raise CuckooStartupError(e)
コード例 #7
0
ファイル: startup.py プロジェクト: kevoreilly/CAPEv2
def create_structure():
    """Creates Cuckoo directories."""
    folders = [
        "log",
        "storage",
        os.path.join("storage", "analyses"),
        os.path.join("storage", "binaries"),
        os.path.join("data", "feeds"),
        os.path.join("data", "guacrecordings"),
    ]

    try:
        create_folders(root=CUCKOO_ROOT, folders=folders)
    except CuckooOperationalError as e:
        raise CuckooStartupError(
            f"Can't create folders. Ensure that you executed CAPE with proper USER! Maybe should be cape user?. %s",
            str(e))
コード例 #8
0
ファイル: utils_tests.py プロジェクト: Missuniverse110/cuckoo
 def test_single_folder(self):
     """Tests a single folder creation."""
     utils.create_folders(self.tmp_dir, ["foo"])
     assert os.path.exists(os.path.join(self.tmp_dir, "foo"))
     os.rmdir(os.path.join(self.tmp_dir, "foo"))
コード例 #9
0
ファイル: utils_tests.py プロジェクト: Seccion7/dep-CAPEv2
 def test_single_folder(self):
     """Tests a single folder creation."""
     utils.create_folders(self.tmp_dir, ["foo"])
     assert os.path.exists(os.path.join(self.tmp_dir, "foo"))
     os.rmdir(os.path.join(self.tmp_dir, "foo"))
コード例 #10
0
 def test_create_folders_no_folders(self):
     utils.create_folders(root="foo")