xlang v4.0 Release
程序设计语言基础库文档
载入中...
搜索中...
未找到
FSObject.xcs
浏览该文件的文档.
1
5@Declare
6final class FSObject{
7
12
18
23
28
32 bool isDir();
33
38 long openDir();
39
46 bool findObject(long hdir, FSObject object);
47
48
53 void closeDir(long hdir);
54
58 bool chmod(int mod);
59
60
64 int getmode();
65
66
71 bool remove();
72
73
79 bool rename(String newname);
80
81
87
88
93 long length();
94
95
100 bool mkdir();
101
102
107 bool exists();
108
109
110
116
117
122};
文件系统对象 3.1新增
Definition FSObject.xcs:6
FSObject()
构造
long length()
获取文件系统对象长度
bool rename(String newname)
重命名文件对象
int getmode()
获取文件权限
FSObject(String path)
通过路径构造
String getPath()
获取文件系统对象的路径
long getLastModifiedTime()
获取最后修改时间
String getName()
获取文件系统对象的名称
long openDir()
打开文件夹
bool exists()
对象是否存在
bool chmod(int mod)
改变文件权限
void closeDir(long hdir)
关闭一个查找ID
bool mkdir()
创建文件夹
bool isDir()
是否文件夹
String getExtension()
获取对象扩展名
String getParentPath()
获取父路径
bool findObject(long hdir, FSObject object)
查找文件系统对象
字符串类