定制 herrera-io/file-system-functions 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

herrera-io/file-system-functions

最新稳定版本:2.0.0

Composer 安装命令:

composer require herrera-io/file-system-functions

包简介

A collection of file system related functions.

README 文档

README

Build Status

I am deprecating this in favor of phine/lib-path.

A collection of file system related functions.

Summary

The library contains a collection of simple file system related functions:

  • canonical_path() - Returns the canonical file path.
  • is_absolute_path() - Check for an absolute path.
  • is_hidden_path() - Checks for a hidden path.

Installation

Add it to your list of Composer dependencies:

$ composer require herrera-io/file-system-functions=1.*

Usage

<?php

var_export(canonical_path('../../myDir')); // /var/lib/myDir
var_export(canonical_path('../../myDir')); // C:\\Projects\\myDir

var_export(is_absolute_path('../')); // false
var_export(is_absolute_path('C:\\Test\\Path')); // true

var_export(is_hidden_path('/path/to/.hidden')); // true
var_export(is_hidden_path('C:\\Path\\To\\Hidden.txt')); // true

统计信息

  • 总下载量: 1.07k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2013-01-20