diff --git a/src/windows/FSNodeWINDOWS.cxx b/src/windows/FSNodeWINDOWS.cxx index 10f63e01c..1bbfb1fd1 100644 --- a/src/windows/FSNodeWINDOWS.cxx +++ b/src/windows/FSNodeWINDOWS.cxx @@ -228,6 +228,13 @@ bool FilesystemNodeWINDOWS:: return true; } +// - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - +size_t FilesystemNodeWINDOWS::getSize() const +{ + struct _stat st; + return _stat(_path.c_str(), &st) == 0 ? st.st_size : 0; +} + // - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - bool FilesystemNodeWINDOWS::makeDir() { diff --git a/src/windows/FSNodeWINDOWS.hxx b/src/windows/FSNodeWINDOWS.hxx index df1abb82f..af2eca064 100644 --- a/src/windows/FSNodeWINDOWS.hxx +++ b/src/windows/FSNodeWINDOWS.hxx @@ -70,6 +70,7 @@ class FilesystemNodeWINDOWS : public AbstractFSNode bool makeDir() override; bool rename(const string& newfile) override; + size_t getSize() const override; bool getChildren(AbstractFSList& list, ListMode mode) const override; AbstractFSNodePtr getParent() const override;