Commit cfa1567e authored by Hugo Beauzée-Luyssen's avatar Hugo Beauzée-Luyssen

File: Add a folderID method

parent 4af1efee
......@@ -175,6 +175,11 @@ bool File::destroy()
return DatabaseHelpers::destroy( m_ml, m_id );
}
int64_t File::folderId()
{
return m_folderId;
}
bool File::createTable( DBConnection dbConnection )
{
std::string req = "CREATE TABLE IF NOT EXISTS " + policy::FileTable::Name + "("
......
......@@ -84,6 +84,7 @@ public:
void startParserStep();
std::shared_ptr<Media> media() const;
bool destroy();
int64_t folderId();
static bool createTable( DBConnection dbConnection );
static std::shared_ptr<File> create( MediaLibraryPtr ml, int64_t mediaId, Type type,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment