@@ -441,7 +441,7 @@ namespace WebDAV
441441#endif
442442 auto multistatus = document.select_node (" *[local-name()='multistatus']" ).node ();
443443 auto responses = multistatus.select_nodes (" *[local-name()='response']" );
444- for (auto response : responses)
444+ for (const auto & response : responses)
445445 {
446446 pugi::xml_node href = response.node ().select_node (" *[local-name()='href']" ).node ();
447447 std::string encode_file_name = href.first_child ().value ();
@@ -457,12 +457,14 @@ namespace WebDAV
457457 auto content_length = prop.select_node (" *[local-name()='getcontentlength']" ).node ();
458458 auto modified_date = prop.select_node (" *[local-name()='getlastmodified']" ).node ();
459459 auto resource_type = prop.select_node (" *[local-name()='resourcetype']" ).node ();
460+ auto etag = prop.select_node (" *[local-name()='getetag']" ).node ();
460461
461462 dict_t information = {
462463 { " created" , creation_date.first_child ().value () },
464+ { " modified" , modified_date.first_child ().value () },
463465 { " name" , display_name.first_child ().value () },
464466 { " size" , content_length.first_child ().value () },
465- { " modified " , modified_date .first_child ().value () },
467+ { " etag " , etag .first_child ().value () },
466468 { " type" , resource_type.first_child ().name () }
467469 };
468470
0 commit comments