TempleOSTS_131005.ISO
This commit is contained in:
1 parent
1343005a29
commit
2d2a65d572
547 files changed
+33608
-12549
No files matched your search
+13
-24
@@ -1,31 +1,20 @@
|
||||
U0 DollarFile(CDirEntry *m1)
|
||||
{
|
||||
CDoc *doc;
|
||||
while (m1) {
|
||||
if (m1->attr & _ATTR_DIR)
|
||||
DollarFile(m1->sub);
|
||||
else {
|
||||
"" m1->full_name;
|
||||
NewLine;
|
||||
doc=DocRead(m1->full_name,DOCF_PLAIN_TEXT|DOCF_DBL_DOLLARS);
|
||||
DocWrite(doc);
|
||||
DocDel(doc);
|
||||
}
|
||||
m1=m1->next;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public U0 Dollar(U8 *files_find_mask,U8 *fu_flags=NULL)
|
||||
//This is for importing non-"TempleOS" text files.
|
||||
//$BK,1$WARNING:$BK,0$Do not use on files with dollar cmds
|
||||
// or on binary files. See $LK,"FilesFind","MN:FilesFind"$() for flags.
|
||||
{
|
||||
CDirEntry *tempm1=NULL;
|
||||
CDoc *doc;
|
||||
I64 fuf_flags=0;
|
||||
GetFFlags(&fuf_flags,Define("ST_FILE_UTIL_FLAGS"),"+r");
|
||||
GetFFlags(&fuf_flags,Define("ST_FILE_UTIL_FLAGS"),fu_flags);
|
||||
tempm1=FilesFind(files_find_mask,fuf_flags);
|
||||
DollarFile(tempm1);
|
||||
CDirLstDel(tempm1);
|
||||
CDirEntry *tempde,*tempde1;
|
||||
ScanFlags(&fuf_flags,Define("ST_FILE_UTIL_FLAGS"),"+r+f+F");
|
||||
ScanFlags(&fuf_flags,Define("ST_FILE_UTIL_FLAGS"),fu_flags);
|
||||
tempde=tempde1=FilesFind(files_find_mask,fuf_flags);
|
||||
while (tempde) {
|
||||
"%s\n",tempde->full_name;
|
||||
doc=DocRead(tempde->full_name,DOCF_PLAIN_TEXT|DOCF_DBL_DOLLARS);
|
||||
DocWrite(doc);
|
||||
DocDel(doc);
|
||||
tempde=tempde->next;
|
||||
}
|
||||
DirLstDel(tempde1);
|
||||
}
|
||||
Reference in new issue
Block a user