Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

eden-folder

Package Overview
Dependencies
Maintainers
1
Versions
27
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eden-folder

Eden Node JS Folder Methods

Source
npmnpm
Version
0.0.31
Version published
Weekly downloads
30
900%
Maintainers
1
Weekly downloads
 
Created
Source

#Folder

DESCRIPTION

Build Status

General

Installation

npm install eden-folder

Usage

var folder = require('eden-folder');

Methods

copy

 this copy(String);

Copy folder to path

Parameters

  • string

Returns

this

Example

Code
folder().copy();
Outputs
RESULTS

getFiles

 string getFiles();

Returns the files

Parameters

Returns

string

Example

Code
folder().getFiles();
Outputs
RESULTS

getFolders

 string getFolders();

Returns the folders in the path

Parameters

Returns

string

Example

Code
folder().getFolders();
Outputs
RESULTS

getName

 string getName();

Returns just the file name

Parameters

Returns

string

Example

Code
folder().getName();
Outputs
RESULTS

getParent

 string getParent();

Returns the folder path

Parameters

Returns

string

Example

Code
folder().getParent();
Outputs
RESULTS

getPermissions

 number getPermissions();

Returns numeric permissions

Parameters

Returns

number

Example

Code
folder().getPermissions();
Outputs
RESULTS

getTime

 number getTime();

Returns the last updated time in unix format

Parameters

Returns

number

Example

Code
folder().getTime();
Outputs
RESULTS

isFolder

 bool isFolder();

Returns true if the path is a real folder in the system

Parameters

Returns

bool

Example

Code
folder().isFolder();
Outputs
RESULTS

mkdir

 this mkdir(Callback);

Create folder with the specified path

Parameters

  • callback

Returns

this

Example

Code
folder().mkdir();
Outputs
RESULTS

remove

 this remove();

Removes the folder

Parameters

Returns

this

Example

Code
folder().remove();
Outputs
RESULTS

truncate

 this truncate();

Empties the contents in the given folder

Parameters

Returns

this

Example

Code
folder().truncate();
Outputs
RESULTS

Keywords

eden

FAQs

Package last updated on 28 Nov 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts