123456789101112 |
- class smb_path_creator(str):
- _path = ''
- def __new__(cls, *args):
- return str.__new__(cls, cls.check_first_symbol(
- '/'.join(args)))
- @classmethod
- def check_first_symbol(cls, string):
- if "/" not in string[0]:
- return "/"+string
- return string
|