No Description
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

filesystem_session.py 603B

1234567891011121314151617181920212223242526272829
  1. # -*- coding: utf-8 -*-
  2. ## @brief An extended dictionary representing a session in the file system
  3. class FileSystemSession(dict):
  4. ## @brief Constructor
  5. # @param token str
  6. def __init__(self, token):
  7. self.__token = token
  8. self.__path = None
  9. ## @brief token getter
  10. # @return str
  11. @property
  12. def token(self):
  13. return self.__token
  14. ## @brief path getter
  15. # @return str
  16. @property
  17. def path(self):
  18. return self.__path
  19. ## @brief path setter
  20. # @param path str
  21. @path.setter
  22. def path(self, path):
  23. self.__path = path