file

WebJar for file

Лицензия

Лицензия

MIT
Группа

Группа

org.webjars.npm
Идентификатор

Идентификатор

file
Последняя версия

Последняя версия

0.2.2
Дата

Дата

Тип

Тип

jar
Описание

Описание

file
WebJar for file
Ссылка на сайт

Ссылка на сайт

http://webjars.org
Система контроля версий

Система контроля версий

http://github.com/aconbere/node-file-utils

Скачать file

Имя Файла Размер
file-0.2.2.pom
file-0.2.2.jar 6 KB
file-0.2.2-sources.jar 22 bytes
file-0.2.2-javadoc.jar 22 bytes
Обзор

Как подключить последнюю версию

<!-- https://jarcasting.com/artifacts/org.webjars.npm/file/ -->
<dependency>
    <groupId>org.webjars.npm</groupId>
    <artifactId>file</artifactId>
    <version>0.2.2</version>
</dependency>
// https://jarcasting.com/artifacts/org.webjars.npm/file/
implementation 'org.webjars.npm:file:0.2.2'
// https://jarcasting.com/artifacts/org.webjars.npm/file/
implementation ("org.webjars.npm:file:0.2.2")
'org.webjars.npm:file:jar:0.2.2'
<dependency org="org.webjars.npm" name="file" rev="0.2.2">
  <artifact name="file" type="jar" />
</dependency>
@Grapes(
@Grab(group='org.webjars.npm', module='file', version='0.2.2')
)
libraryDependencies += "org.webjars.npm" % "file" % "0.2.2"
[org.webjars.npm/file "0.2.2"]

Зависимости

Библиотека не имеет зависимостей. Это самодостаточное приложение, которое не зависит ни от каких других библиотек.

Модули Проекта

Данный проект не имеет модулей.

File - Common higher level file and path operations

Install

  npm install file
  var file = require("file");

API

file.walk(start, callback)

Navigates a file tree, calling callback for each directory, passing in (null, dirPath, dirs, files).

file.walkSync(start, callback)

Synchronus version of file.walk, calling callback for each directory, passing in (dirPath, dirs, files).

file.mkdirs(path, mode, callback)

Makes all the directories in a path. (analgous to mkdir -P) For example given a path like "test/this/path" in an empty directory, mkdirs would make the directories "test", "this" and "path".

file.mkdirsSync(path, mode)

Like file.mkdirs but synchronous.

file.path.abspath(path)

Expands ".", "..", "~" and non root paths to their full absolute path. Relative paths default to being children of the current working directory.

file.path.relativePath(root, fullPath)

Given a root path, and a fullPath attempts to diff between the two to give us an acurate path relative to root.

file.path.join(head, tail)

Just like path.join but haves a little more sanely when give a head equal to "". file.path.join("", "tail") returns "tail", path.join("", "tail") returns "/tail"

Версии библиотеки

Версия
0.2.2