mirror of
https://github.com/mrfluffy-dev/fsorter.git
synced 2026-01-17 02:50:33 +00:00
fixed missing decleration of paths
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -7,5 +7,5 @@ fsorter
|
|||||||
CMakeFiles/
|
CMakeFiles/
|
||||||
settings.conf
|
settings.conf
|
||||||
cmake_install.cmake
|
cmake_install.cmake
|
||||||
CMakeCach.txt
|
CMakeCache.txt
|
||||||
Makefile
|
Makefile
|
||||||
|
|||||||
2
main.cpp
2
main.cpp
@@ -54,6 +54,7 @@ std::vector<std::string> readSettings()
|
|||||||
std::vector<typeAndPaths> declarePaths(std::vector<std::string> listOfPaths)
|
std::vector<typeAndPaths> declarePaths(std::vector<std::string> listOfPaths)
|
||||||
{
|
{
|
||||||
typeAndPaths Paths;
|
typeAndPaths Paths;
|
||||||
|
std::vector<typeAndPaths> paths;
|
||||||
for (int i = 0; i < listOfPaths.size(); i+=3)
|
for (int i = 0; i < listOfPaths.size(); i+=3)
|
||||||
{
|
{
|
||||||
listOfPaths[i].pop_back();
|
listOfPaths[i].pop_back();
|
||||||
@@ -124,7 +125,6 @@ void sortPath(std::string path, std::vector<typeAndPaths> Paths)
|
|||||||
{
|
{
|
||||||
if(file.path().has_extension())
|
if(file.path().has_extension())
|
||||||
{
|
{
|
||||||
std::cout << file.path().extension() << '\n';
|
|
||||||
for (int i = 0; i < Paths.size(); i++) {
|
for (int i = 0; i < Paths.size(); i++) {
|
||||||
for (int x = 0; x < Paths[i].extentions.size(); x++) {
|
for (int x = 0; x < Paths[i].extentions.size(); x++) {
|
||||||
if(Paths[i].extentions[x] == file.path().extension())
|
if(Paths[i].extentions[x] == file.path().extension())
|
||||||
|
|||||||
Reference in New Issue
Block a user