Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/hoppfrosch/cpath
AutoHotkey class to work with pathes
https://github.com/hoppfrosch/cpath
Last synced: 18 days ago
JSON representation
AutoHotkey class to work with pathes
- Host: GitHub
- URL: https://github.com/hoppfrosch/cpath
- Owner: hoppfrosch
- License: mit
- Created: 2019-10-17T10:31:24.000Z (about 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-20T08:43:48.000Z (almost 5 years ago)
- Last Synced: 2024-11-01T11:42:12.480Z (2 months ago)
- Language: HTML
- Homepage: https://hoppfrosch.github.io/cPath/#File:Readme.txt
- Size: 1.47 MB
- Stars: 2
- Watchers: 2
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE_cPath
Awesome Lists containing this project
README
# cPath [![AutoHotkey2](https://img.shields.io/badge/Language-AutoHotkey2-red.svg)](https://autohotkey.com/)
This library uses [AutoHotkey Version 2](https://autohotkey.com/v2/). (Tested and developed with [v2.0-a104 x64 Unicode](https://www.autohotkey.com/boards/viewtopic.php?p=288705#p288705))
## Description
AHK class [Path](https://hoppfrosch.github.io/cPath/#AutoHotKeyClass:Path) for working with Pathes in Windows. It relies heavily on Win-API functionality, which is exposed by several functions (within module [PathAPI.ahk](https://hoppfrosch.github.io/cPath/#File:PathAPI.ahk)) and offers an additional class encapsulating these functionality.
The class [Path](https://hoppfrosch.github.io/cPath/#AutoHotKeyClass:Path) tries to mimic Perls [Path::Tiny](https://metacpan.org/pod/Path::Tiny).
## Usage
Include `cPath.ahk` from the `lib` folder into your project using standard AutoHotkey-include methods.
```autohotkey
#include
mypath := path("C:/tmp/..\test", "../tmp", "test.txt")
doesExist := mypath.exists
isDir := path("C:\Windows).is_dir
```## Further Information
* [License](https://hoppfrosch.github.io/cPath/#File:Readme.txt:License)
* Author: [[email protected]](mailto:[email protected])