If the argurment is a string or a PathNice, a PathNice is returned. A PathNice
instance is a wrapper of the raw path string, so that the path can be easily used to
generate additional paths or manipulate files.
If there are more than 1 arguments or the only argument is an Array, a PathNiceArr
is returned. The class PathNiceArr extends the base class Array, adding methods for
copying, moving, removing, watching files in a holistic manner.
Get a new instance of
PathNice
orPathNiceArr
.If the argurment is a string or a
PathNice
, aPathNice
is returned. APathNice
instance is a wrapper of the raw path string, so that the path can be easily used to generate additional paths or manipulate files.If there are more than 1 arguments or the only argument is an
Array
, aPathNiceArr
is returned. The classPathNiceArr
extends the base classArray
, adding methods for copying, moving, removing, watching files in a holistic manner.For details, please refer to the documents of PathNice and PathNiceArr.
Example
Get a PathNice instance:
Get the raw path string from PathNice:
Use
src
to generate another path:Use
src
to write a file:Get a PathNiceArr instance:
Filter json files from the array and copy to another folder: