Requires
pinata 2.7.0 or later (npm i pinata@latest).Usage
Returns
folder_max_files is the most files one folder can hold: 30,000 unless your account has its own limit. folder() checks it for you before uploading a new folder. A new path sent into a folder that holds as many is refused with HTTP 413; a path the folder already has can still be replaced.
A JWT Pinata refuses rejects with an AuthenticationError. Any other failure rejects with a NetworkError.