Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kazu-yamamoto/easy-file
Cross-platform File handling for Unix/Mac/Windows
https://github.com/kazu-yamamoto/easy-file
Last synced: 17 days ago
JSON representation
Cross-platform File handling for Unix/Mac/Windows
- Host: GitHub
- URL: https://github.com/kazu-yamamoto/easy-file
- Owner: kazu-yamamoto
- License: bsd-3-clause
- Created: 2010-07-29T05:06:29.000Z (over 14 years ago)
- Default Branch: main
- Last Pushed: 2024-01-31T00:27:34.000Z (10 months ago)
- Last Synced: 2024-05-09T14:56:25.488Z (6 months ago)
- Language: Haskell
- Homepage:
- Size: 50.8 KB
- Stars: 10
- Watchers: 4
- Forks: 7
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: ChangeLog.md
- License: LICENSE
Awesome Lists containing this project
README
![GitHub Actions status](https://github.com/kazu-yamamoto/easy-file/workflows/Haskell%20CI/badge.svg)
# Easy file handling for Haskell
This is a Haskell package of cross-platform file handling for Unix/Mac/Windows.
The current Haskell modules have following shortcomings:
- getModificationTime exists in System.Directory. But getAccessTime,
getStatusChangeTime, getCreationTime do not exist.- getModificationTime returns obsoleted type, ClockTime. It should
return modern type, UTCTime, I believe.- Some file functions are missing. A function to tell the link counter,
for instance.- Path separator is not unified. Even though Windows accepts '/' as a
file separator, getCurrentDirectory in System.Directory returns '\\'
as a file separator. So, we need to specify regular expression like
this: "[/\\]foo[/\\]bar[/\\]baz".- getHomeDirectory returns HOMEDRIVE/HOMEPATH instead of the HOME
environment variable on Windows.This package aims to resolve these problems.