From b637daa4cfcf5e1668b55ca6c4e221dbe995d29e Mon Sep 17 00:00:00 2001 From: Julian Oes Date: Mon, 21 Sep 2026 10:04:11 +1200 Subject: [PATCH] fix(mavlink): send tabbed size and mtime for directories in ListDirectoryWithTime (#28628) The ListDirectoryWithTime (opcode 16) entry format is \t\t\0, but PX4 only applied it to files and sent directories as a bare D. MAVSDK's server already sends D\t0\t, so the two servers disagreed and a client had to special-case which one it was talking to. Directories are now stat()ed for their modification time and reported with size 0, matching MAVSDK. The plain ListDirectory (opcode 3) response is unchanged: existing clients take everything after the D as the directory name there. Assisted-by: Claude:claude-fable-5-1 Signed-off-by: Julian Oes