Skip to content

Internals Vfs Storage Interfaces IFileSystemService

Stefan Crkvenjakov edited this page Oct 7, 2026 · 1 revision

vfs\storage\interfaces\IFileSystemService

Framework Internals · Subsystem overview · Developer guide

Source: awt_src/classes/vfs/storage/interfaces/IFileSystemService.php · Snapshot 8411f4287706.

VFS includes package resource lookup, database-backed file metadata, filesystem collaborators, transient pools and persistent PHP-array caches.

IFileSystemService

Declaration and architectural role

interface IFileSystemService

Source description (behavioral corrections are recorded in Known discrepancies):

Interface IFileSystemService

Abstracts all file system I/O operations (SRP + DIP). StorageManager depends on this contract, not a concrete implementation.

Constants, enum cases, traits and properties

No own constants, enum cases, traits or property declarations. Inherited members are documented on the parent reference page.

Method index

Method Signature
move public function move(string $sourcePath, string $destinationPath): bool
copy public function copy(string $sourcePath, string $destinationPath): bool
delete public function delete(string $path): bool
rename public function rename(string $sourcePath, string $destinationPath): bool
fileSize public function fileSize(string $path): int
lastModified public function lastModified(string $path): int
exists public function exists(string $path): bool
makeDirectory public function makeDirectory(string $path, int $permissions = 0755, bool $recursive = true): bool

move

Source line 13

public function move(string $sourcePath, string $destinationPath): bool;

Parameters

Parameter Type, modifiers and default Purpose
$sourcePath string $sourcePath Operation input; the exact use, validation and propagation are shown in the implementation trace.
$destinationPath string $destinationPath Operation input; the exact use, validation and propagation are shown in the implementation trace.

Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.

copy

Source line 15

public function copy(string $sourcePath, string $destinationPath): bool;

Parameters

Parameter Type, modifiers and default Purpose
$sourcePath string $sourcePath Operation input; the exact use, validation and propagation are shown in the implementation trace.
$destinationPath string $destinationPath Operation input; the exact use, validation and propagation are shown in the implementation trace.

Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.

delete

Source line 17

public function delete(string $path): bool;

Parameters

Parameter Type, modifiers and default Purpose
$path string $path Filesystem or route path as defined by the owning component; no universal path normalization is implied.

Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.

rename

Source line 19

public function rename(string $sourcePath, string $destinationPath): bool;

Parameters

Parameter Type, modifiers and default Purpose
$sourcePath string $sourcePath Operation input; the exact use, validation and propagation are shown in the implementation trace.
$destinationPath string $destinationPath Operation input; the exact use, validation and propagation are shown in the implementation trace.

Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.

fileSize

Source line 21

public function fileSize(string $path): int;

Parameters

Parameter Type, modifiers and default Purpose
$path string $path Filesystem or route path as defined by the owning component; no universal path normalization is implied.

Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.

lastModified

Source line 23

public function lastModified(string $path): int;

Parameters

Parameter Type, modifiers and default Purpose
$path string $path Filesystem or route path as defined by the owning component; no universal path normalization is implied.

Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.

exists

Source line 25

public function exists(string $path): bool;

Parameters

Parameter Type, modifiers and default Purpose
$path string $path Filesystem or route path as defined by the owning component; no universal path normalization is implied.

Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.

makeDirectory

Source line 27

public function makeDirectory(string $path, int $permissions = 0755, bool $recursive = true): bool;

Parameters

Parameter Type, modifiers and default Purpose
$path string $path Filesystem or route path as defined by the owning component; no universal path normalization is implied.
$permissions int $permissions = 0755 Operation input; the exact use, validation and propagation are shown in the implementation trace.
$recursive bool $recursive = true Operation input; the exact use, validation and propagation are shown in the implementation trace.

Contract only: implementations supply the behavior. Parameter and return types are enforced by PHP; caller and implementation constraints follow the subsystem overview.

Clone this wiki locally