timestee / dart-webdav

A Easy WebDAV Client in Dart
https://github.com/timestee/dart-webdav
The Unlicense
28 stars 14 forks source link

ls返回空目录是哪里错了 #10

Closed answer0732 closed 4 years ago

answer0732 commented 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 []
answer0732 commented 4 years ago

上传文件正常,但是查询不到目录,请问是哪里设置错了吗

timestee commented 4 years ago

上传文件正常,但是查询不到目录,请问是哪里设置错了吗

has fixed, pls try again.

answer0732 commented 4 years ago

thanks !