탐색할 디렉토리의 깊이는 두 번째 매개 변수(정수)를 사용합니다.
기본 값은 `1`이며 최상위 디렉토리만 매핑합니다.
$mydirectory = 'vfs://root'; directory_map($mydirectory, 1); => Array ( [0] => Helper/ [1] => Tutorial/ [2] => Library/ [3] => Incomming/ [4] => Model/ [5] => Sample/ [6] => Refactoring/ [7] => Home.php [8] => Response/ [9] => Controller/ [10] => Filters/ [11] => Routing/ [12] => Cli/ [13] => Database/ [14] => Ci4lab/ [15] => BaseController.php )
기본적으로 숨김(hidden) 파일과 숨김 디렉토리는 건너뜁니다.
세 번째 매개 변수를 `true`로 설정하면 숨긴 파일과 디렉토리도 가져옵니다.
$mydirectory = 'vfs://root'; directory_map($mydirectory, false, true); => Array ( [Helper/] => Array ( [Arr/] => Array ( [0] => Exam4.php [1] => Home.php [2] => Exam2.php [3] => Exam1.php [4] => Exam3.php ) [Date/] => Array ( [0] => Home.php [1] => Exam.php ) [Cookie/] => Array ( [0] => Home.php [1] => Exam1.php ) [Filesys/] => Array ( [0] => Exam6.php [1] => Exam4.php [2] => Home.php [3] => Exam2.php [4] => Exam5.php [5] => Exam1.php [6] => Exam3.php ) ) [Tutorial/] => Array ( [0] => News2.php [1] => News3.php [Page/] => Array ( [0] => Home.php ) [2] => Pages2.php [3] => Home.php [4] => News1.php [5] => Pages1.php ) [Library/] => Array ( [Curl/] => Array ( [0] => Home.php ) [Pagination/] => Array ( [0] => Exam6.php [1] => Exam4.php [2] => Home.php [3] => Exam2.php [4] => Exam5.php [5] => Exam1.php [6] => Exam3.php ) [Validation/] => Array ( [0] => Exam4.php [1] => Home.php [2] => Exam2.php [3] => Exam1.php [4] => Exam3.php ) ) [Incomming/] => Array ( [0] => Header.php [1] => GetFilter.php [2] => Url.php [3] => Home.php [4] => GetInput.php [5] => UserController.php [6] => Upload.php [7] => ReqType.php ) [Model/] => Array ( [Entity/] => Array ( [0] => Home.php [1] => Exam2.php [2] => Exam1.php [3] => Exam3.php ) [Cimodel/] => Array ( [0] => Delete.php [1] => Save.php [2] => Home.php [3] => SoftDelete.php [4] => Find.php ) [Pagination/] => Array ( [0] => Exam4.php [1] => Home.php [2] => Exam2.php [3] => Exam1.php [4] => Exam3.php ) [Validation/] => Array ( [0] => Home.php [1] => User.php ) [Event/] => Array ( [0] => Home.php [1] => ModelEvent.php ) ) [Sample/] => Array ( [0] => Home.php ) [Refactoring/] => Array ( [Basic/] => Array ( [0] => Exam6.php [1] => Exam8.php [Refactoring/] => Array ( [0] => Exam6.php [1] => Exam8.php [2] => Exam4.php [3] => Exam7.php [4] => Exam2.php [5] => Exam5.php [6] => Exam1.php [7] => Exam3.php ) [2] => Exam4.php [3] => Home.php [4] => Exam7.php [5] => Exam2.php [6] => Exam5.php [7] => Exam1.php [8] => Exam3.php ) [Capsulation/] => Array ( [Refactoring/] => Array ( [0] => Exam1.php ) [0] => Home.php [1] => Exam1.php ) ) [0] => Home.php [Response/] => Array ( [Api/] => Array ( [0] => Home.php [1] => Exam1.php ) [Cell/] => Array ( [0] => Home.php [1] => Blog.php [2] => Cache.php ) [Layout/] => Array ( [0] => Home.php [1] => MyLayout.php ) [Parser/] => Array ( [0] => Render.php [1] => Loop.php [2] => Simple.php [3] => Exam4.php [4] => Home.php ) [Localization/] => Array ( [0] => Test.php [1] => Home.php [2] => IcuSample.php [3] => Locale.php [4] => Lang.php ) [Http/] => Array ( [0] => Download.php [1] => Home.php [2] => Caching.php [3] => SetOutput.php ) [View/] => Array ( [0] => Page.php [1] => Loop.php [2] => Home.php [3] => Blog.php [4] => Cache.php [5] => Data.php ) [Table/] => Array ( [0] => Custom.php [1] => Home.php [2] => Example.php ) ) [Controller/] => Array ( [0] => Remap2.php [1] => Home.php [2] => Remap1.php [3] => Helloworld2.php [4] => Invisible.php [5] => Products.php [6] => Helloworld1.php ) [Filters/] => Array ( [0] => Login.php [1] => Home.php ) [Routing/] => Array ( [0] => Blogs.php [1] => Reverse.php [2] => Home.php [3] => Galleries.php [4] => Catalog2.php [5] => Catalog.php [6] => Users.php [7] => Products.php [Admin/] => Array ( [0] => Blogs.php [1] => Users.php ) [API/] => Array ( [v1/] => Array ( [0] => Users2.php [1] => Users.php ) ) ) [Cli/] => Array ( [0] => Hello.php ) [Database/] => Array ( [Queries/] => Array ( [0] => Home.php [1] => Escape.php [2] => Identifier.php [3] => Basic.php [4] => Prepare.php [5] => Prefix.php [6] => Bind.php ) [Qbuilder/] => Array ( [0] => Select.php [1] => Orderby.php [2] => Delete.php [3] => Where.php [4] => Update.php [5] => Home.php [6] => Insert.php [7] => Qgroup.php [8] => Like.php [9] => Limit.php ) [Helper/] => Array ( [0] => Database.php [1] => Home.php [2] => Query.php ) [Configuration/] => Array ( [0] => Home.php ) [Quick/] => Array ( [0] => Home.php [1] => QueryBuilder.php [2] => Start.php ) [Result/] => Array ( [0] => GetRow.php [1] => Home.php [2] => Helper.php [3] => GetUnbufferedRow.php [4] => GetResult.php [5] => User.php ) ) [Ci4lab/] => Array ( [Lab1/] => Array ( [0] => Home.php [1] => Exam2.php [2] => Exam1.php ) ) [1] => BaseController.php )