Class

NSDirectoryEnumerator

An object that enumerates the contents of a directory. あるディレクトリの内容を列挙するオブジェクト。

Declaration 宣言

@interface NSDirectoryEnumerator<__covariant ObjectType> : NSEnumerator

Overview 概要

You obtain a directory enumerator using NSFileManager’s enumeratorAtPath: method. The enumeration provides the pathnames of all files and directories contained within that directory. These pathnames are relative to the directory. あなたはディレクトリ列挙子を、NSFileManagerの持つenumeratorAtPath:メソッドを使って取得します。列挙は、そのディレクトリ内に含まれる全てのファイルとディレクトリのパス名を提供します。これらのパス名は、そのディレクトリに相対的です。

An enumeration is recursive, including the files of all subdirectories, and crosses device boundaries. An enumeration does not resolve symbolic links, or attempt to traverse symbolic links that point to directories. 列挙は再帰的で、すべての下位ディレクトリのファイルを含んでいます、そしてデバイス境界を越えていきます。列挙は、シンボリックリンクを解決しません、またはディレクトリを指すシンボリックリンクを辿ることを試みません。

Topics 話題

Getting File and Directory Attributes ファイルおよびディレクトリ属性を取得する

Skipping Subdirectories 下位ディレクトリをスキップする

Instance Properties インスタンスプロパティ

Relationships 関係

Inherits From 継承元

See Also 参照

Discovering Directory Contents ディレクトリ内容を発見する