2017 © Pedro PelĂĄez
 

library nwfileoperations

Function collection for different file operations like completing a path or creating a file.

image

nitricware/nwfileoperations

Function collection for different file operations like completing a path or creating a file.

  • Saturday, October 24, 2015
  • by nitricware
  • Repository
  • 1 Watchers
  • 0 Stars
  • 0 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

NWFileOperations 1.0.1

Disclaimer: This package is a legacy package for nitricware/nwlog and nitricware/nwdatabase (before version 2.0), (*1)

Introduction

NWFileOperations provides multiple functions for easy file handling., (*2)

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., (*3)

NWFileOperations was created by Kurt Höblinger as NitricWare., (*4)

Requirements

NWFileOperations requires NWLog (available on Github) and PHP 5.x., (*5)

Usage

Use Composer to install NWFileOperations to your project via the composer require nitricware/nwfileoperations command or your composer.json., (*6)

Alternatively you can also just include the NWFileOperations.php-file., (*7)

require "./path/to/NWFileOperations.php";

Functions

For information about the functions, please check the documentation inside the .php-file!, (*8)

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, (*9)

v1.0c - made it available to composer, (*10)

v1.0 - initial release, (*11)

The Versions

24/10 2015

dev-master

9999999-dev https://github.com/nitricware/nwfileoperations

Function collection for different file operations like completing a path or creating a file.

  Sources   Download

MIT

The Requires

 

file php utility