Skip to content

Commit aef4713

Browse files
committed
Fix problem in LIST command
1 parent e7847a2 commit aef4713

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

FtpServer.cpp

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1157,8 +1157,11 @@ bool FtpServer::doList()
11571157

11581158
if( dir.isDirectory()) {
11591159
data.print( F("+/,\t") );
1160+
DEBUG_PRINT(F("+/,\t"));
11601161
} else {
1161-
data.print( F("+r,s") );
1162+
data.print( F("+r,s") );
1163+
DEBUG_PRINT(F("+r,s"));
1164+
}
11621165
#if ESP8266
11631166
data.print( long( dir.fileSize()) );
11641167
data.print( F(",\t") );
@@ -1172,8 +1175,13 @@ bool FtpServer::doList()
11721175
data.print( long( fileDir.size()) );
11731176
data.print( F(",\t") );
11741177
data.println( fileDir.name() );
1178+
1179+
DEBUG_PRINT( long( fileDir.size()));
1180+
DEBUG_PRINT( F(",\t") );
1181+
DEBUG_PRINTLN( fileDir.name() );
1182+
11751183
#endif
1176-
}
1184+
11771185

11781186
nbMatch ++;
11791187
return true;

0 commit comments

Comments
 (0)