file-ext

Collection of utility functions to work with files

https://github.com/bohdaq/file-ext

Science Score: 44.0%

This score indicates how likely this project is to be science-related based on various indicators:

  • CITATION.cff file
    Found CITATION.cff file
  • codemeta.json file
    Found codemeta.json file
  • .zenodo.json file
    Found .zenodo.json file
  • DOI references
  • Academic publication links
  • Academic email domains
  • Institutional organization owner
  • JOSS paper metadata
  • Scientific vocabulary similarity
    Low similarity (11.3%) to scientific vocabulary

Keywords

directory file path rust symlink
Last synced: 6 months ago · JSON representation ·

Repository

Collection of utility functions to work with files

Basic Info
  • Host: GitHub
  • Owner: bohdaq
  • License: other
  • Language: Rust
  • Default Branch: main
  • Homepage:
  • Size: 179 KB
Statistics
  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • Open Issues: 0
  • Releases: 7
Topics
directory file path rust symlink
Created over 3 years ago · Last pushed over 2 years ago
Metadata Files
Readme License Citation

README.md

Welcome to file-ext!

Hi, file-ext is a collection of utility functions to work with files. It is tested and works on Linux, macOS and Windows.

Features

  1. File
    1. Read
    2. Read partially
    3. Does file exist
    4. Create
    5. Read file, if it doesn't exist create and write to file
    6. Write to file
    7. Delete
    8. Copy
  2. Directory
    1. Create
    2. Does directory exist
    3. Delete directory
  3. Path
    1. Absolute path to working directory
    2. Get OS dependent path separator ('/' on Unix, '\' on Windows)
    3. Get path to OS temporary folder ('/tmp' on Linux and macOS, 'C:\Users\username\AppData\Local\Temp' on Windows
  4. Symlink
    1. Does symlink exist
    2. Get path symlink points to
    3. Create symlink
  5. User
    1. Get the name of the user who is running the process
    2. Get domain user belongs to (available only on Windows)

Configuration

No additional configuration.

Demo

Take a look at mod.rs

Documentation

Take a look at mod.rs

Crate

Link to crate release.

Build

If you want to build file-ext on your own, make sure you have Rust installed.

$ cargo build

Test

If you want to test file-ext.

$ cargo test

Community

Use GitHub discussions, issues and pull requests.

There is Rust Web Server Discord where you can ask questions and share ideas.

Follow the Rust code of conduct.

Donations

Send me tips via PayPal.

Links

  1. Rust Web Server
  2. http-to-https-letsencrypt
  3. Rust Web Framework
  4. Create Debian Package
  5. Create RPM Package
  6. Homebrew Formula

Owner

  • Name: Bohdan Tsap
  • Login: bohdaq
  • Kind: user

Citation (CITATION.cff)

cff-version: 0.0.1
message: "If you use this software, please cite it as below."
authors:
  - family-names: Tsap
    given-names: Bohdan
    orcid: https://orcid.org/0000-0002-5221-5607
    email: bohdan.tsap@tutanota.com
title: "file-ext"
version: 10.0.0
doi: 10.5281/zenodo.7763970
date-released: 2023-03-23
url: "https://github.com/bohdaq/file-ext"

GitHub Events

Total
Last Year

Issues and Pull Requests

Last synced: 7 months ago

All Time
  • Total issues: 0
  • Total pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Total issue authors: 0
  • Total pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Past Year
  • Issues: 0
  • Pull requests: 0
  • Average time to close issues: N/A
  • Average time to close pull requests: N/A
  • Issue authors: 0
  • Pull request authors: 0
  • Average comments per issue: 0
  • Average comments per pull request: 0
  • Merged pull requests: 0
  • Bot issues: 0
  • Bot pull requests: 0
Top Authors
Issue Authors
Pull Request Authors
Top Labels
Issue Labels
Pull Request Labels

Packages

  • Total packages: 1
  • Total downloads:
    • cargo 14,397 total
  • Total dependent packages: 1
  • Total dependent repositories: 0
  • Total versions: 12
  • Total maintainers: 1
crates.io: file-ext

Collection of utility functions to work with files

  • Documentation: https://docs.rs/file-ext/
  • License: MIT OR Apache-2.0 OR ISC OR LGPL-3.0-or-later OR CC-BY-4.0
  • Latest release: 12.0.0
    published over 2 years ago
  • Versions: 12
  • Dependent Packages: 1
  • Dependent Repositories: 0
  • Downloads: 14,397 Total
Rankings
Dependent packages count: 17.0%
Dependent repos count: 29.3%
Average: 37.1%
Forks count: 37.5%
Stargazers count: 43.6%
Downloads: 58.1%
Maintainers (1)
Last synced: 7 months ago

Dependencies

Cargo.toml cargo