You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
final sftp = await client.sftp();
final items = await sftp.listdir('/');
for (final item in items) {
if ((file.attr.isSymbolicLink)){
print(item.longname);
}
}
The text was updated successfully, but these errors were encountered:
You can use sftp.stat with followLink set to true to check the attributes of the target of the link.
final sftp =await client.sftp();
final files =await sftp.listdir('/');
for (var file in files) {
if (file.attr.isSymbolicLink) {
final stat =await sftp.stat(file.filename, followLink:true);
print('type: ${stat.mode?.type}');
}
}
The text was updated successfully, but these errors were encountered: