usage
folder subfolder = folder->createDirectory( string name )
paramètres
name: the name of the subfolder you want to create.
exemples
<?php
include('../Kernel/common/file.class.php');
if(sizeof($_FILES)>0){
$folder = new Folder('/media/');
$picturesFolder = $folder->createDirectory('images');
$uploader = new FilesUploader();
$uploader->addFile( $_FILES['picture'] );
$uploader->setTarget( $picturesFolder );
$uploader->execute();
}
?>
<form enctype="multipart/form-data" method="post">
<input type="file" name="picture"/><input type="submit"/>
</form>