xlang v5.1 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
File类 参考
File 的协作图:
Collaboration graph

Public 成员函数

详细描述

File类提供文件和目录操作的接口,支持文件创建、读取、修改、删除等基本操作。

在文件 File.x4 行定义.

构造及析构函数说明

◆ File() [1/3]

File ( )

◆ File() [2/3]

File ( String  )

◆ File() [3/3]

File ( File  ,
  String 
)

成员函数说明

◆ chmod()

bool chmod ( int  )

◆ close()

void close ( long  )

被这些函数引用 OSProcess.getProcessListUnix().

这是这个函数的调用关系图:

◆ exists()

bool exists ( )

◆ extension()

String extension ( )

获取文件扩展名

返回
返回文件的扩展名字符串,保证不为空指针

◆ finalize()

void finalize ( )

◆ find()

bool find ( long  ,
  File 
)

被这些函数引用 OSProcess.getProcessListUnix().

这是这个函数的调用关系图:

◆ getName()

String getName ( )

获取文件或目录的名称

返回
返回文件或目录的名称字符串,保证不为空指针

被这些函数引用 OSProcess.getProcessListUnix().

这是这个函数的调用关系图:

◆ getPath()

String getPath ( )

获取文件的完整路径

返回
返回文件的完整路径字符串,保证不为空指针

被这些函数引用 OSProcess.getProcessListUnix().

这是这个函数的调用关系图:

◆ isDirectory()

bool isDirectory ( )

◆ lastModifiedTime()

long lastModifiedTime ( )

◆ length()

long length ( )

◆ mkdir()

bool mkdir ( )

◆ mode()

int mode ( )

◆ open()

long open ( )

被这些函数引用 OSProcess.getProcessListUnix().

这是这个函数的调用关系图:

◆ parentPath()

String parentPath ( )

获取父目录路径

返回
返回父目录的路径字符串,保证不为空指针

◆ remove()

bool remove ( )

◆ rename()

bool rename ( String  )