Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/openpeeps/find
(WIP) Finds files and directories based on different criteria via an intuitive fluent interface
https://github.com/openpeeps/find
files filesystem find finder iterator nim nim-language openpeep
Last synced: 17 days ago
JSON representation
(WIP) Finds files and directories based on different criteria via an intuitive fluent interface
- Host: GitHub
- URL: https://github.com/openpeeps/find
- Owner: openpeeps
- Created: 2023-01-23T11:14:02.000Z (about 2 years ago)
- Default Branch: main
- Last Pushed: 2023-10-07T20:23:59.000Z (over 1 year ago)
- Last Synced: 2024-11-20T19:36:21.114Z (3 months ago)
- Topics: files, filesystem, find, finder, iterator, nim, nim-language, openpeep
- Language: Nim
- Homepage:
- Size: 4.75 MB
- Stars: 8
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Finds files and directories based on different criteria
via an intuitive fluent interface. 👑 Written in Nim language
nimble install find
## 😍 Key Features
- [x] Fluent Interface
- [x] `Driver` Local Filesystem
- [ ] `Driver` SSH via libssh
- [ ] `Driver` FTP/SFTP
- [ ] `Driver` WebDAV
- [x] Open Source | `MIT` License
- [x] Written in Nim language## Examples
Get all `.txt` files from directory
```nim
let res: Results = finder("./examples").name("*.txt").get
```Get all `.txt` files from directory using `size` criteria
```nim
let res = finder("./examples").name("*.txt").size(< 10.mb).get
for file in res.files():
echo file.getSize
```Find files using regular expression
```nim
let res = finder("./examples").name(re"20[\w-]+\.txt").get
for file in res.files:
echo file.getName
```For more examples check [/tests](https://github.com/openpeeps/find/tree/main/tests) | [API reference](https://openpeeps.github.io/find/)
### ❤ Contributions & Support
- 🐛 Found a bug? [Create a new Issue](https://github.com/openpeeps/find/issues)
- 👋 Wanna help? [Fork it!](https://github.com/openpeeps/find/fork)
- 😎 [Get €20 in cloud credits from Hetzner](https://hetzner.cloud/?ref=Hm0mYGM9NxZ4)
- 🥰 [Donate via PayPal address](https://www.paypal.com/donate/?hosted_button_id=RJK3ZTDWPL55C)### 🎩 License
Find | MIT license. [Made by Humans from OpenPeeps](https://github.com/openpeep).
Copyright © 2023 OpenPeeps & Contributors — All rights reserved.