humanemulator.net — справка.
Продукт, демо и покупка — на
хуманэмулятор.рф
|
Демо
|
Купить
|
API
|
лог изменений
get_all_folders
get_all_folders($path,$include_subfolders=false,$mask="*.*",$timeout=3000); -$mask Excel : '*.xlsx'
Функция на вход принимает параметры:
:
Пример использования
<?php // Scenario: Demonstrates how to get all subfolders from a directory with specific filters $xhe_host = "localhost:7010"; // Connect functional objects if not already connected if (!isset($path)){ $path = "../../../Templates/init.php"; require($path); } // info echo "\n<span >folder->" . basename (__FILE__) . "</span>\n"; // Example 1: Get all subfolders from a specific directory with filter echo "\n\n"; // Set variables for getting subfolders $folderPath = "d:/App"; $recursive = false; $folderFilter = "S*"; // Get all subfolders from the specified directory echo "1. Get all subfolders from '$folderPath' (recursive: $recursive, filter: $folderFilter):\n"; $subfolders = SYSTEM::$folder->get_all_folders($folderPath, $recursive, $folderFilter); var_export($subfolders); // Quit the application WINDOW::$app->quit(); ?>
# Additional paths import sys sys.path.insert(0, '../../../Templates PY/') xhe_host = "127.0.0.1:7022" from xweb_human_emulator import * # начало echo("<hr><font color=blue>folder.xxxxxxxxx</font><hr>") # 1 echo("1. Получить список всех подпапок из текущей папки: ") echo(folder.get_all_folders("")) # конец echo("<hr><br>") # Quit app.quit()
#region using using System; using System.Diagnostics; using System.Collections.Generic; using System.Linq; using System.IO; using System.Text; using System.Threading; using XHE; using XHE.XHE_DOM; using XHE.XHE_System; using XHE.XHE_Window; using XHE.XHE_Web; #endregion class Program:XHEScript { static void Main(string[] args) { // init XHE server = "localhost:7010"; InitXHE(); // начало echo("<hr><font color=blue>folder.get_all_items</font><hr>"); // 1 шаг echo("1. Получить список всех подпапок в текущей папке"); echo(folder.get_all_folders("")); // конец echo("\n\n"); app.quit(); } }
// подключим функциональные объекты, если еще не подключен xhe_host="127.0.0.1:7028"; echo=require("../../../Templates JS/init.js"); // начало echo("<hr><font color=blue>folder.get_all_items</font><hr>"); // 1 шаг echo("1. Получить список всех подпапок в текущей папке : "); echo(folder.get_all_folders("")); // конец echo("\n"); // Quit app.quit();
=============================================
folder Объекты DOM System Vision Web Window
=============================================
если что-то непонятно или необходимо узнать или считаете что надо добавить по работе этой функции, пишите в комментарии или на наш форум
.