Closed answer0732 closed 4 years ago
class _WebDavPageState extends State<WebDavPage> { final Client webDav = Client( 'dav.jianguoyun.com/dav/', 'kcr0976@163.com', 'ag5hb2k87nabgm72', '/', protocol: 'https' ); @override Widget build(BuildContext context) { return Container( child: Center( child: RaisedButton( child: Text('Get File'), onPressed: () async { await webDav.ls("/").then((value) { print('value is $value'); }); }, ), ), ); } }
控制台输出:
I/flutter ( 3865): [wevdav] http send with method:PROPFIND path:/ url:https://dav.jianguoyun.com/dav/iviki I/flutter ( 3865): value is []
上传文件正常,但是查询不到目录,请问是哪里设置错了吗
has fixed, pls try again.
thanks !
控制台输出: