Kodi plugin to to play various online streams (mostly Latvian)

12345678910111213141516171819202122232425
  1. # -*- coding: utf-8 -*-
  2. import os
  3. def exists(target):
  4. return os.path.exists(target)
  5. def rename(origin, target):
  6. return os.rename(origin, target)
  7. def delete(target):
  8. if os.path.isfile(target) and not os.path.isdir(target):
  9. return os.unlink(target)
  10. return False
  11. def mkdir(target):
  12. os.mkdir(target)
  13. def listdir(target):
  14. return os.listdir(target)