Skip to content

Latest commit

 

History

History
executable file
·
13 lines (12 loc) · 874 Bytes

File metadata and controls

executable file
·
13 lines (12 loc) · 874 Bytes

#FSnode_local The local implementation FSnode is modelled after PHP their Filesystem Functions and Directory Functions. A multitude of listed functions are available as methods, with the same name and attributes and behaviour.

$data = file_get_contents('index.html');
# equals:
$fsnode = new FSnode_local(); /*or*/ $fsnode = FSnode::load_URI('./'); /*or*/ $fsnode = FSnode('./');
$data = $fsnode->file_get_contents('index.html');
# and more generic:
$data = $fsnode->read('index.html');
# you should use the generics to enforce future code-compatablity when accessing on other filesystems, like: ftp

see the Class Diagram for the complete list of usable methods.