예제 #1
0
파일: rules.py 프로젝트: maerli/aulas
def add_directory(args):
    Directory.create(**args)
예제 #2
0
 def setUp(self):
     self.path = SystemTest.get_testing_directory() / "arbitrary_directory"
     Directory.create(self.path)
예제 #3
0
 def test_create(self):
     self.assert_directory_does_not_exist(self.path)
     Directory.create(self.path)
     self.assert_directory_exists(self.path)
예제 #4
0
 def test_remove_nested_directory(self):
     Directory.create(self.path / "nested")
     Directory.remove(self.path)
     self.assert_directory_does_not_exist(self.path)
예제 #5
0
파일: api.py 프로젝트: maerli/aulas
 def add(self, name):
     Directory.create(parentId=1, name=name, type='$')
     return "ok"