Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added feature to return macOS desktop path for StoragePath #813

Merged
merged 7 commits into from
Jan 8, 2025
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Update storagepath.py
  • Loading branch information
temitayoadefemi committed Jul 30, 2024
commit 17a2ce17a7be3bd98aadc4a422209a63fde94519
12 changes: 11 additions & 1 deletion plyer/facades/storagepath.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,11 @@
>>> from plyer import storagepath
>>> storagepath.get_application_dir()


'''



class StoragePath:
'''
StoragePath facade.
Expand Down Expand Up @@ -101,7 +103,12 @@ def get_application_dir(self):
Get the path of the directory holding application files.
'''
return self._get_application_dir()


def get_desktop_dir(self):
'''
Get the path of the directory holding application files.
'''
return self._get_desktop_dir()
# private

def _get_home_dir(self):
Expand Down Expand Up @@ -133,3 +140,6 @@ def _get_pictures_dir(self):

def _get_application_dir(self):
raise NotImplementedError()

def _get_desktop_dir(self):
raise NotImplementedError()