Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
VideoLAN
medialibrary
Commits
41f356c5
Commit
41f356c5
authored
Apr 13, 2015
by
Hugo Beauzée-Luyssen
Browse files
Folder: Fix folder files listing
parent
f338cee0
Changes
2
Hide whitespace changes
Inline
Side-by-side
include/IFolder.h
View file @
41f356c5
...
...
@@ -10,5 +10,6 @@ public:
virtual
~
IFolder
()
=
default
;
virtual
unsigned
int
id
()
const
=
0
;
virtual
const
std
::
string
&
path
()
=
0
;
// This will only returns the files in this immediate folder
virtual
std
::
vector
<
FilePtr
>
files
()
=
0
;
};
src/Folder.cpp
View file @
41f356c5
...
...
@@ -65,7 +65,7 @@ const std::string& Folder::path()
std
::
vector
<
FilePtr
>
Folder
::
files
()
{
static
const
std
::
string
req
=
"SELECT
f.
* FROM "
+
policy
::
FileTable
::
Name
+
" WHERE
f.id_
folder = ?"
;
static
const
std
::
string
req
=
"SELECT * FROM "
+
policy
::
FileTable
::
Name
+
" WHERE folder
_id
= ?"
;
return
SqliteTools
::
fetchAll
<
File
,
IFile
>
(
m_dbConection
,
req
,
m_id
);
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment