authorize(); $App->openSession(); /// Scan files in root $FSListService = new \alphayax\freebox\api\v3\services\FileSystem\FileSystemListing( $App); $FilesInRoot = $FSListService->getFilesFromDirectory( '/'); print_r( $FilesInRoot); /// Get a file information (Will throw an exception if file does not exists) try { $VideoFile = $FSListService->getFileInformation( '/Disque dur/Téléchargements/'); print_r( $VideoFile); } catch (Exception $e){ echo $e->getMessage(); }