nitricware / nwfileoperations
Function collection for different file operations like completing a path or creating a file.
Requires
- php: >=5.3.0
- nitricware/nwlog: ^1.0.3
This package is auto-updated.
Last update: 2025-04-20 22:24:40 UTC
README
Disclaimer: This package is a legacy package for nitricware/nwlog and nitricware/nwdatabase (before version 2.0)
Introduction
NWFileOperations provides multiple functions for easy file handling.
License
The NWFileOperations is distributed under the MIT License which allows you to use it privately and commercially, to distribute, modify and sublicense it. You may not hold me liable and must include my name in the credits of your work.
NWFileOperations was created by Kurt Höblinger as NitricWare.
Requirements
NWFileOperations requires NWLog (available on Github) and PHP 5.x.
Usage
Use Composer to install NWFileOperations to your project via the composer require nitricware/nwfileoperations
command or your composer.json
.
Alternatively you can also just include the NWFileOperations.php-file.
require "./path/to/NWFileOperations.php";
Functions
For information about the functions, please check the documentation inside the .php-file!
With NWFileOperations you can:
- Complete a path to match ./path/
- Delete an object
- Create a file
- Create a directory
- Empty a directory
- List the contents of a directory
- Get the size of a file
- Copy an object
- Rename an object
- Move an object
- Count the lines of a file
- Read specified lines of a file
- Append a number to a filename while filename exists
Changelog
v1.0.1
- composer fix
v1.0c
- made it available to composer
v1.0
- initial release