PHPackages                             jiny/filesystem - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [File &amp; Storage](/categories/file-storage)
4. /
5. jiny/filesystem

ActiveLibrary[File &amp; Storage](/categories/file-storage)

jiny/filesystem
===============

Filesystem for JinyPHP

0.0.1(7y ago)135MITBladePHP &gt;= 7.0

Since Oct 31Pushed 4y ago1 watchersCompare

[ Source](https://github.com/jinyphp/filesystem)[ Packagist](https://packagist.org/packages/jiny/filesystem)[ Docs](http://www.jinyphp.com)[ RSS](/packages/jiny-filesystem/feed)WikiDiscussions master Synced 3d ago

READMEChangelogDependenciesVersions (2)Used By (0)

JINY filesystem
===============

[](#jiny-filesystem)

운영체제 확인
-------

[](#운영체제-확인)

php 슈퍼상수 `DIRECTORY_SEPARATOR`를 이용한, OS를 확인합니다.

```
File::os()
```

반환값으로 `windows` 또는 `linux` 문자열을 출력합니다.

디렉토리
----

[](#디렉토리)

디렉토리와 관련된 메소드를 지원합니다.

### isDir

[](#isdir)

입력된 디렉토리의 존재를 확인합니다.

```
File::isDir( $경로 )
```

```
File::isDirMake($path)
```

입력된 경로를 조사합니다. 존재하지 않는 디렉토리 경로일 경우 새롭게 생성을 합니다.

### 디렉토리 생성

[](#디렉토리-생성)

디렉토리를 생성할 수 있습니다.

```
File::mkDir( $경로 )
```

입력한 경로의 디렉토리를 생성합니다.

```
File::isMkdir( $경로 )
```

디렉토리의 존재를 미리 확인후에, 없으면 새로운 디렉토리를 생성합니다.

```
File::mkdirRescure($경로)
```

입력된 서브 디렉토리를 같이 생성을 합니다.

경로
--

[](#경로)

경로처리와 관련된 메소드를 지원합니다.

### current

[](#current)

현재의 경로를 출력합니다.

```
File::current()
```

current는 `getcwd()`의 alias 입니다. php의 내부 `getcwd()`의 결과값을 반환합니다.

### 경로추출

[](#경로추출)

입력된 경로에서 디렉토리 부분만을 추출합니다.

```
File::pathDir($path)
```

### 기본 경로

[](#기본-경로)

입력한 경로에서 기본 경로를 제외한 상대 경로를 출력합니다.

```
File::basePath($path, $base = null)
```

### 경로 파일

[](#경로-파일)

경로에서 주어진 파일을 추출합니다.

```
File::pathFile($path)
```

### 경로 파일명

[](#경로-파일명)

입력된 경로에서 파일명을 추출합니다.

```
File::pathFilename($path);
```

### 경로 파일 확장자

[](#경로-파일-확장자)

입력된 경로에서 파일의 확장자를 추출합니다.

```
File::pathExtension($path)
```

---

지니 파일처리 라이브러리는 `싱글턴`방식의 클래스로 구성되어 있습니다.

인스턴스 얻기
-------

[](#인스턴스-얻기)

먼저 객체의 인스턴스를 얻어 매소드를 호출할 수 있습니다. 기본적으로 클래스의 인스턴스를 얻기 위해서는 `new`를 사용을 해야 하지만, 매번 호출시 중복 생성되는 인스턴스 메모리를 방지하기 위해서 `싱글턴`방식으로 제작이 되었습니다.

파일시스템의 인스턴스를 얻는 방법은

```
$d = \Jiny\Filesystem\File::init();
```

와 같이 정적 팩토리 메소드를 호출하는 것입니다.

path($path)
-----------

[](#pathpath)

path\_real($path)
-----------------

[](#path_realpath)

path\_add($base, $path)
-----------------------

[](#path_addbase-path)

is\_dir($path)
--------------

[](#is_dirpath)

mkdir($path, $mode=777)
-----------------------

[](#mkdirpath-mode777)

mkdir\_sub($path, $mode=777)
----------------------------

[](#mkdir_subpath-mode777)

rmdir($path)
------------

[](#rmdirpath)

rmdir\_all($path)
-----------------

[](#rmdir_allpath)

rename($old, $new)
------------------

[](#renameold-new)

scandir($path)
--------------

[](#scandirpath)

delete($path)
-------------

[](#deletepath)

file\_extension($path)
----------------------

[](#file_extensionpath)

file\_name($path)
-----------------

[](#file_namepath)

symlink($src, $dst)
-------------------

[](#symlinksrc-dst)

read($filename)
---------------

[](#readfilename)

read\_lines($filename)
----------------------

[](#read_linesfilename)

save($filename, $content, $mode="w")
------------------------------------

[](#savefilename-content-modew)

copy($src, $dst)
----------------

[](#copysrc-dst)

isUpadate($filename)
--------------------

[](#isupadatefilename)

###  Health Score

23

—

LowBetter than 27% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity46

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Unknown

Total

1

Last Release

2753d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/75c5c65bda6186b73346a67470690630aa2b6e086e28bfd1e9e56ae412e44fbe?d=identicon)[hojinlee](/maintainers/hojinlee)

---

Top Contributors

[![infohojin](https://avatars.githubusercontent.com/u/18171333?v=4)](https://github.com/infohojin "infohojin (20 commits)")

---

Tags

filesystemjinyphpframwork

### Embed Badge

![Health badge](/badges/jiny-filesystem/health.svg)

```
[![Health](https://phpackages.com/badges/jiny-filesystem/health.svg)](https://phpackages.com/packages/jiny-filesystem)
```

###  Alternatives

[league/flysystem

File storage abstraction for PHP

13.6k639.1M2.2k](/packages/league-flysystem)[league/flysystem-aws-s3-v3

AWS S3 filesystem adapter for Flysystem.

1.6k263.6M790](/packages/league-flysystem-aws-s3-v3)[knplabs/gaufrette

PHP library that provides a filesystem abstraction layer

2.5k39.8M123](/packages/knplabs-gaufrette)[knplabs/knp-gaufrette-bundle

Allows to easily use the Gaufrette library in a Symfony project

72528.6M91](/packages/knplabs-knp-gaufrette-bundle)[league/flysystem-local

Local filesystem adapter for Flysystem.

226231.8M39](/packages/league-flysystem-local)[oneup/flysystem-bundle

Integrates Flysystem filesystem abstraction library to your Symfony project.

64422.9M66](/packages/oneup-flysystem-bundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
