mirror of
https://github.com/ArduPilot/ardupilot
synced 2025-01-18 06:38:29 -04:00
GCS_MAVLink: support symlinks as files
this allows for use of symlinks with ftp and scripts
This commit is contained in:
parent
fa87019339
commit
ab4772c9b7
@ -567,7 +567,7 @@ void GCS_MAVLINK::ftp_worker(void) {
|
||||
|
||||
// calculates how much string length is needed to fit this in a list response
|
||||
int GCS_MAVLINK::gen_dir_entry(char *dest, size_t space, const char *path, const struct dirent * entry) {
|
||||
const bool is_file = entry->d_type == DT_REG;
|
||||
const bool is_file = entry->d_type == DT_REG || entry->d_type == DT_LNK;
|
||||
|
||||
if (space < 3) {
|
||||
return -1;
|
||||
|
Loading…
Reference in New Issue
Block a user