mirror of
https://github.com/lollipopkit/flutter_server_box.git
synced 2026-02-11 10:44:30 +01:00
fix(sftp): FIx Permission Denied While Accessing SFTP (#1019)
* fix(storage): Set the initial SFTP path based on the user's role When the user is not root, set the initial path to `/home/$user`. For root users, use `/root` as the path * chore: Add issue participants into github_id * fix(sftp): Improved the logic for obtaining the initial path and asynchronously processed directory listings Attempt to obtain the user's home directory path by executing a command, and fall back to the default path if it fails. At the same time, change the _listDir call to asynchronous to avoid potential issues. * fix(storage): Fixed the logic for determining the initial path of SFTP Change the condition from checking if the path is not equal to '~' to checking if the path starts with '/', to ensure the correct user home directory path is obtained
This commit is contained in:
@@ -131,6 +131,12 @@ abstract final class GithubIds {
|
||||
'Lancerys',
|
||||
'yaziku',
|
||||
'yeluosln',
|
||||
'FadeFx',
|
||||
'Snihc1205',
|
||||
'Bjups',
|
||||
'4061N',
|
||||
'itmagpro',
|
||||
'atikattar1104'
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user