Displays the path to the user's documents directory.
Project description
mydocuments
A command line tool that returns the path to the user's Documents directory.
Description
Conventional knowledge says that in Windows, user's default Documents directory
is located in %USERPROFILE%\Documents. This is wrong.
The Documents directory can exist in:
%USERPROFILE%\Documents
%USERPROFILE%\OneDrive\Documents
%USERPROFILE%\OneDrive - [Company Name]\Documents
In fact, a folder named Documents can exist in all of the above locations
simultaneously.
There is no environmental variable that tells you which one is the correct one.
There is no environment variable that tells you whether OneDrive backup is enabled or not, or if it is, if it's personal OneDrive or OneDrive for Business.
This tool was written to eliminate the guess-work and provide a definite answer by making a Windows API call to retrieve the correct path.
For platform agnosticism sake, it also provides a fuzzy find method that attempts to guess the correct path.
Usage
mydocuments [-f | -w | -h | -v]
--help, -h Show this help message and exit.
--version, -v Show version information and exit.
--fuzzy, -f Use a fuzzy multiplatform method.
--winapi, -w Use Windows API method.
By default, if run on Windows the tool will use the more accurate -w method.
On other platforms it will default to the fuzzy finder, for obvious reasons.
Installation
Windows
On Windows, this tool is distributed via scoop
(see scoop.sh).
First, you need to add my bucket:
scoop bucket add maciak https://github.com/maciakl/bucket
scoop update
Next simply run:
scoop install mydocuments
If you don't want to use scoop you can simply download the executable from
the release page and extract it somewhere in your path.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file mydocuments-0.1.0.tar.gz.
File metadata
- Download URL: mydocuments-0.1.0.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c725209d7d650eb50f346d3ec17b080fd37b3628c383f023514a2cd6b4aaaca0
|
|
| MD5 |
55338b05ec88e673759ac7d6b7289c30
|
|
| BLAKE2b-256 |
0a93abd4b2af2187ebbba34cd65835a2406395cb6caed48d5c8f4ba4f2a09194
|
File details
Details for the file mydocuments-0.1.0-py3-none-any.whl.
File metadata
- Download URL: mydocuments-0.1.0-py3-none-any.whl
- Upload date:
- Size: 3.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e53954c1e14a24ef1d2da281970436fe2da1440f68fd792bc3ac106dc331994f
|
|
| MD5 |
db5299299935f563795798e70ec2a3fb
|
|
| BLAKE2b-256 |
41e2eb70a8e2ca5deafe25c2f972098dfd2bd4b73a65808b800ea7bf7b4ebac0
|