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

Other Useful Business Software
$300 in Free Credit Towards Top Cloud Services Icon
$300 in Free Credit Towards Top Cloud Services

Build VMs, containers, AI, databases, storage—all in one place.

Start your project in minutes. After credits run out, 20+ products include free monthly usage. Only pay when you're ready to scale.
Get Started
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