Debian Codegraph @

plyer/platforms/win/storagepath.py

raw symbols SCIP
1 '''
2 Windows Storage Path
3 --------------------
4 '''
5
6 from plyer.facades import StoragePath
7 from os.path import expanduser
8 from plyer.platforms.win.libs.win_api_defs import get_PATH
9 from uuid import UUID
10
11
12 class WinStoragePath(StoragePath):
13
14 def _get_home_dir(self):
15 return expanduser('~')
16
17 def _get_external_storage_dir(self):
18 '''
19 To do.
20 '''
21 return "Method not implemented for current platform."
22
23 def _get_root_dir(self):
24 folderid = UUID('{F38BF404-1D43-42F2-9305-67DE0B28FC23}')
25 return get_PATH(folderid)
26
27 def _get_documents_dir(self):
28 folderid = UUID('{FDD39AD0-238F-46AF-ADB4-6C85480369C7}')
29 return get_PATH(folderid)
30
31 def _get_downloads_dir(self):
32 folderid = UUID('{374DE290-123F-4565-9164-39C4925E467B}')
33 return get_PATH(folderid)
34
35 def _get_videos_dir(self):
36 folderid = UUID('{18989B1D-99B5-455B-841C-AB7C74E4DDFC}')
37 return get_PATH(folderid)
38
39 def _get_music_dir(self):
40 folderid = UUID('{4BD8D571-6D19-48D3-BE97-422220080E43}')
41 return get_PATH(folderid)
42
43 def _get_pictures_dir(self):
44 folderid = UUID('{33E28130-4E1E-4676-835A-98395C3BC3BB}')
45 return get_PATH(folderid)
46
47 def _get_application_dir(self):
48 folderid = UUID('{905E63B6-C1BF-494E-B29C-65B732D3D21A}')
49 return get_PATH(folderid)
50
51
52 def instance():
53 return WinStoragePath()