Utils
copy_to(src, dst)
Copies the contents form src to dst .
Parameters:
Name | Type | Description | Default |
---|---|---|---|
src |
Path
|
[description] |
required |
dst |
Path
|
[description] |
required |
Source code in omoospace\utils.py
copy_to_clipboard(string)
Copy to clipboard
Parameters:
Name | Type | Description | Default |
---|---|---|---|
string |
str
|
The string want to be copyed. |
required |
is_subpath(child, parent, or_equal=False)
Return True if child is a subpath of parent .
Parameters:
Name | Type | Description | Default |
---|---|---|---|
child |
PathLike
|
Child path |
required |
parent |
PathLike
|
Parent path |
required |
or_equal |
bool
|
[description]. Defaults to False. |
False
|
Returns:
Name | Type | Description |
---|---|---|
bool |
bool
|
Result. |
Source code in omoospace\utils.py
reveal_in_explorer(dst)
Open the directory in file exploarer
Parameters:
Name | Type | Description | Default |
---|---|---|---|
dst |
PathLike
|
The directory want to open |
required |