Skip to content

Commit

Permalink
Fix problem in LIST command
Browse files Browse the repository at this point in the history
  • Loading branch information
xreef committed Nov 24, 2021
1 parent e7847a2 commit aef4713
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions FtpServer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1157,8 +1157,11 @@ bool FtpServer::doList()

if( dir.isDirectory()) {
data.print( F("+/,\t") );
DEBUG_PRINT(F("+/,\t"));
} else {
data.print( F("+r,s") );
data.print( F("+r,s") );
DEBUG_PRINT(F("+r,s"));
}
#if ESP8266
data.print( long( dir.fileSize()) );
data.print( F(",\t") );
Expand All @@ -1172,8 +1175,13 @@ bool FtpServer::doList()
data.print( long( fileDir.size()) );
data.print( F(",\t") );
data.println( fileDir.name() );

DEBUG_PRINT( long( fileDir.size()));
DEBUG_PRINT( F(",\t") );
DEBUG_PRINTLN( fileDir.name() );

#endif
}


nbMatch ++;
return true;
Expand Down

0 comments on commit aef4713

Please sign in to comment.