{"id":19280108,"url":"https://github.com/jinyphp/filesystem","last_synced_at":"2026-02-18T07:01:50.729Z","repository":{"id":56999272,"uuid":"155549894","full_name":"jinyphp/filesystem","owner":"jinyphp","description":null,"archived":false,"fork":false,"pushed_at":"2022-02-24T04:23:39.000Z","size":54,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-10-26T02:48:47.853Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Blade","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jinyphp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2018-10-31T11:57:13.000Z","updated_at":"2022-01-03T06:09:24.000Z","dependencies_parsed_at":"2022-08-21T14:50:25.710Z","dependency_job_id":null,"html_url":"https://github.com/jinyphp/filesystem","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/jinyphp/filesystem","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinyphp%2Ffilesystem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinyphp%2Ffilesystem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinyphp%2Ffilesystem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinyphp%2Ffilesystem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jinyphp","download_url":"https://codeload.github.com/jinyphp/filesystem/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jinyphp%2Ffilesystem/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":29571888,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-02-18T06:19:27.422Z","status":"ssl_error","status_checked_at":"2026-02-18T06:18:44.348Z","response_time":162,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-09T21:16:56.826Z","updated_at":"2026-02-18T07:01:50.708Z","avatar_url":"https://github.com/jinyphp.png","language":"Blade","funding_links":[],"categories":[],"sub_categories":[],"readme":"# JINY filesystem\n\n\n\n## 운영체제 확인\nphp 슈퍼상수 `DIRECTORY_SEPARATOR`를 이용한, OS를 확인합니다.\n\n```php\nFile::os()\n```\n반환값으로 `windows` 또는 `linux` 문자열을 출력합니다.\n\n## 디렉토리\n디렉토리와 관련된 메소드를 지원합니다.\n\n### isDir\n입력된 디렉토리의 존재를 확인합니다.\n\n```php\nFile::isDir( $경로 )\n```\n\n```php\nFile::isDirMake($path)\n```\n입력된 경로를 조사합니다. 존재하지 않는 디렉토리 경로일 경우 새롭게 생성을 합니다.\n\n\n### 디렉토리 생성\n디렉토리를 생성할 수 있습니다.\n\n```php\nFile::mkDir( $경로 )\n```\n입력한 경로의 디렉토리를 생성합니다.\n\n```php\nFile::isMkdir( $경로 )\n```\n디렉토리의 존재를 미리 확인후에, 없으면 새로운 디렉토리를 생성합니다.\n\n```php\nFile::mkdirRescure($경로)\n```\n입력된 서브 디렉토리를 같이 생성을 합니다. \n\n\n\n## 경로\n경로처리와 관련된 메소드를 지원합니다.\n\n### current\n현재의 경로를 출력합니다.\n\n```php\nFile::current()\n```\ncurrent는 `getcwd()`의 alias 입니다. php의 내부 `getcwd()`의 결과값을 반환합니다.\n\n\n### 경로추출\n입력된 경로에서 디렉토리 부분만을 추출합니다.\n```php\nFile::pathDir($path)\n```\n\n### 기본 경로\n입력한 경로에서 기본 경로를 제외한 상대 경로를 출력합니다.\n```php\nFile::basePath($path, $base = null)\n```\n\n### 경로 파일\n경로에서 주어진 파일을 추출합니다.\n```php\nFile::pathFile($path)\n```\n\n### 경로 파일명\n입력된 경로에서 파일명을 추출합니다.\n\n```php\nFile::pathFilename($path);\n```\n\n\n\n### 경로 파일 확장자\n입력된 경로에서 파일의 확장자를 추출합니다.\n\n```php\nFile::pathExtension($path)\n```\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n---\n지니 파일처리 라이브러리는 `싱글턴`방식의 클래스로 구성되어 있습니다.\n\n## 인스턴스 얻기\n먼저 객체의 인스턴스를 얻어 매소드를 호출할 수 있습니다. 기본적으로 클래스의 인스턴스를 얻기 위해서는 `new`를 사용을\n해야 하지만, 매번 호출시 중복 생성되는 인스턴스 메모리를 방지하기 위해서 `싱글턴`방식으로 제작이 되었습니다.\n\n파일시스템의 인스턴스를 얻는 방법은 \n```php\n$d = \\Jiny\\Filesystem\\File::init();\n```\n와 같이 정적 팩토리 메소드를 호출하는 것입니다.\n\n\n\n\n## path($path)\n\n## path_real($path)\n\n\n## path_add($base, $path)\n\n## is_dir($path)\n\n## mkdir($path, $mode=777)\n\n## mkdir_sub($path, $mode=777)\n\n## rmdir($path)\n\n## rmdir_all($path)\n\n## rename($old, $new)\n\n## scandir($path)\n\n## delete($path)\n\n## file_extension($path)\n\n## file_name($path)\n\n## symlink($src, $dst)\n\n## read($filename)\n\n## read_lines($filename)\n\n\n## save($filename, $content, $mode=\"w\")\n\n\n## copy($src, $dst)\n\n\n## isUpadate($filename)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjinyphp%2Ffilesystem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjinyphp%2Ffilesystem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjinyphp%2Ffilesystem/lists"}