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
PathNiceorPathNiceArr.If the argurment is a string or a
PathNice, aPathNiceis returned. APathNiceinstance 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, aPathNiceArris returned. The classPathNiceArrextends 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
srcto generate another path:Use
srcto write a file:Get a PathNiceArr instance:
Filter json files from the array and copy to another folder: