Skip to content

Commit ae43eb0

Browse files
committed
+ add function description
1 parent 59cfdb6 commit ae43eb0

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

Src/devicebridge.h

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,13 @@ class DeviceBridge : public QObject
161161
bool afc_upload_dir(afc_client_t &afc, const QString &path, const QString &afcpath, std::function<void(int,int,QString)> callback = nullptr);
162162
int afc_copy_crash_reports(afc_client_t &afc, const char* device_directory, const char* host_directory, const char* target_dir = nullptr, const char* filename_filter = nullptr);
163163
int afc_count_recursive(afc_client_t afc, const char* path);
164+
// Recursively walks an AFC path and populates m_accessibleStorage.
165+
// Parameters:
166+
// - afc: active AFC client used for directory reads and file info lookups.
167+
// - path: AFC path to start traversal (e.g. "/" or "/Documents").
168+
// - visited: optional counter of visited entries; incremented as each file/dir is processed.
169+
// - total: total number of entries expected; used with visited to compute percentage.
170+
// - progress_cb: optional callback invoked as progress_cb(visited, total) after each entry.
164171
void afc_traverse_recursive(afc_client_t afc, const char* path, int* visited = nullptr, int total = 0, std::function<void(int,int)> progress_cb = nullptr);
165172

166173
//Mounter

0 commit comments

Comments
 (0)