Skip to content

word dir  #2

@tretyakovsa

Description

@tretyakovsa

Dear friend. It's great.
The assembly was successful.
Noticed a small inaccuracy.
This led to incorrect work of the word.

void xdir() {
cink(63);cpaper(0);  
fastmode();
File root = SPIFFS.open("/");
File file = root.openNextFile();
cprint(nowpath);ccr();
char *fn;
int di;
// cpyldir((char *)file.name());
cpyldir((char *)file.path());
while(file){
	// fn=(char*)file.name();
	fn=(char*)file.path();
	di=indir(fn);
	if (di>0) {
		fn=filenameo(fn);
		cprint(fn);
		cemit(32);cprint(dec(file.size()));
		cprint("b");  
		ccr();
		}
	file = root.openNextFile();
	}
file.close();
root.close();
slowmode();
//cprint(nowpath);ccr();
modo=-1;
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions