コード例 #1
0
IO_METHOD(IoDirectory, name)
{
    /*doc Directory name
    Returns the receiver's last path component.
    */

    return IoSeq_lastPathComponent(DATA(self)->path, locals, m);
}
コード例 #2
0
ファイル: IoFile.c プロジェクト: achoy/io
IO_METHOD(IoFile, lastPathComponent)
{
	/*doc File name
	Returns the last path component of the file path.
	*/

	return IoSeq_lastPathComponent(DATA(self)->path, locals, m);
}