説明
array lstat (string filename)
filenameという名前のファイルまたはシンボリックリンクの情報を得ます。
この関数の動作はstat()関数と同じですが、
パラメータfilenameがシンボリックリンクで
あった場合に、シンボリック先のファイルのステータスではなく、
シンボリックリンクのステータスが返されるところが異なります。
次の要素を有するファイル情報の配列を返します。
device
inode
number of links
user id of owner
group id owner
device type if inode device *
size in bytes
time of last access
time of last modification
time of last change
blocksize for filesystem I/O *
number of blocks allocated
* - st_blksize 型をサポートしているシステムでのみ有効--
他のシステム (例えば、Windows) では -1 を返します。
この関数の結果はキャッシュされます。詳細は、
clearstatcache()を参照下さい。