100 {
102 {
104 }
105
106 string file_name;
107 int file_attr;
108 int flags;
110
111 string path_find_pattern =
GetPathScenes()+
"/*."+PluginSceneManager.SCENE_SUFIX;
113
114 bool found = true;
115 while ( found )
116 {
117 int pos = file_name.
IndexOf(
".");
118
119 if ( pos > -1 )
120 {
121 list.Insert( file_name.
Substring(0, pos) );
122 }
123
124 found =
FindNextFile(file_handler, file_name, file_attr);
125 }
126
127 return list;
128 }
array< string > TStringArray
proto native bool MakeDirectory(string name)
Makes a directory.
enum FindFileFlags FindFile(string pattern, out string fileName, out FileAttr fileAttributes, FindFileFlags flags)
proto bool FindNextFile(FindFileHandle handle, out string fileName, out FileAttr fileAttributes)
proto bool FileExist(string name)
Check existence of file.
proto string Substring(int start, int len)
Substring of 'str' from 'start' position 'len' number of characters.
proto native int IndexOf(string sample)
Finds 'sample' in 'str'. Returns -1 when not found.