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

URLByStandardizingPath

A URL that points to the same resource as the original URL using an absolute path. (read-only) 絶対パスを使って元のURLと同じリソースを指し示すURL。(読み出しのみ)

Declaration 宣言

@property(nullable, readonly, copy) NSURL *URLByStandardizingPath;

Discussion 議論

This property only works on URLs with the file: path scheme. For all other URLs, it returns a copy of the original URL. このプロパティは、file:パススキームを持つURLで働くだけです。全ての他のURLに対して、それは元のURLのコピーを返します。

Like stringByStandardizingPath, this property can make the following changes in the provided URL: stringByStandardizingPathに似て、このプロパティは以下の変更を提供されたURLにおいて行います:

  • Expand an initial tilde expression using stringByExpandingTildeInPath. 冒頭のチルダ式をstringByExpandingTildeInPathを使って展開します。

  • Reduce empty components and references to the current directory (that is, the sequences “//” and “/./”) to single path separators. 空の構成要素と現在のディレクトリ(すなわち、“//” と “/./”)は単位のパス分離子にまとめられます。

  • In absolute paths only, resolve references to the parent directory (that is, the component “..”) to the real parent directory if possible using stringByResolvingSymlinksInPath, which consults the file system to resolve each potential symbolic link. 絶対パスにおいてのみ、親ディレクトリへの参照(すなわち、構成要素 “..”)を実際の親ディレクトリへと解決してください、もしstringByResolvingSymlinksInPathを使うことで可能ならば、それはファイルシステムに相談して各潜在的シンボリックリンクを解決します。

    In relative paths, because symbolic links can’t be resolved, references to the parent directory are left in place. 相対パスにおいて、シンボリックリンクは解決可能でないために、親ディレクトリへの参照はその場にそのまま残されます。

  • Remove an initial component of “/private” from the path if the result still indicates an existing file or directory (checked by consulting the file system). “/private” の冒頭の構成要素をパスから取り除いてください、もしその結果がまだ既存のファイルまたはディレクトリを指し示すならば(ファイルシステムに相談することで確認して)。

Note that the path contained by this property may still have symbolic link components in it. Note also that this property only works with file paths (not, for example, string representations of URLs). このプロパティによって含まれるパスは、依然としてシンボリックリンク構成要素をそれの中に持つかもしれないことに注意してください。このプロパティはファイルパスでのみ働くことにもまた注意してください(例えば、URLの文字列表現ではなく)。

See Also 参照

Modifying and Converting a File URL ファイルURLを修正および変換する