Stud.IP  jlu_3.3 Revision
file_test.php File Reference

Variables

 $folder_entry = $root->mkdir('folder', 0)
 
 $folder = $folder_entry->getFile()
 
 $file_entry = $folder->create('file')
 
 $file = $file_entry->getFile()
 
 $stream = $file->open('wb')
 
 $entries = $root->listFiles()
 

Variable Documentation

◆ $entries

$entries = $root->listFiles()

◆ $file

$file = $file_entry->getFile()

◆ $file_entry

$file_entry = $folder->create('file')

◆ $folder

$folder = $folder_entry->getFile()

◆ $folder_entry

$folder_entry = $root->mkdir('folder', 0)

file_test.php - tests for the File class

Copyright (c) 2013 Elmar Ludwig

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version.

◆ $stream

$stream = $file->open('wb')