diff --git a/libgrive/src/drive/Resource.cc b/libgrive/src/drive/Resource.cc index 6229852..1df51cf 100644 --- a/libgrive/src/drive/Resource.cc +++ b/libgrive/src/drive/Resource.cc @@ -261,7 +261,7 @@ void Resource::FromLocal( const DateTime& last_sync ) else m_state = ( m_mtime > last_sync ? local_new : remote_deleted ) ; - m_name = path.filename().string() ; + m_name = Path2Str( path.filename() ) ; m_kind = fs::is_directory(path) ? "folder" : "file" ; m_md5 = fs::is_directory(path) ? "" : crypt::MD5::Get( path ) ; }