The Filesystem component provides platform-independent utilities for filesystem operations and for file/directory paths manipulation. The component contains two main classes called Filesystem and Path. mkdir() creates a directory recursively. On POSIX filesystems, directories are created with a default mode value 0777. You can use the second argument to set your own mode. exists() checks for the presence of one or more files or directories and returns false if any of them is missing. copy() makes a copy of a single file (use mirror() to copy directories). If the target already exists, the file is copied only if the source modification date is later than the target. This behavior can be overridden by the third boolean argument. touch() sets access and modification time for a file. The current time is used by default. You can set your own with the second argument. The third argument is the access time.

Features

  • Provides platform-independent utilities
  • Utilities for filesystem operations
  • Utilities for file/directory paths manipulation
  • Find longest common base paths
  • Convert absolute/relative paths
  • Find directories/root directories

Project Samples

Project Activity

See All Activity >

Categories

File Systems

License

MIT License

Follow Filesystem Component

Filesystem Component Web Site

You Might Also Like
Our Free Plans just got better! | Auth0 by Okta Icon
Our Free Plans just got better! | Auth0 by Okta

With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your secuirty. Auth0 now, thank yourself later.
Try free now
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Filesystem Component!

Additional Project Details

Programming Language

PHP

Related Categories

PHP File Systems

Registered

2022-01-07