22 lines
501 B
C++
22 lines
501 B
C++
#pragma once
|
|
|
|
#include "Metadata.h"
|
|
#include <filesystem>
|
|
#include <vector>
|
|
#include <string>
|
|
#define MUSIC_FOLDER = {"data/"};
|
|
|
|
namespace fs = std::filesystem;
|
|
|
|
class File {
|
|
public:
|
|
void importFile( std::string fileName );
|
|
void importFolder( std::string folderPath );
|
|
std::vector<std::string> filenames_;
|
|
private:
|
|
std::string path_;
|
|
fs::path musicFolder_ MUSIC_FOLDER;
|
|
std::string fileName_;
|
|
fs::path fp_ = musicFolder_ / fileName_;
|
|
};
|