-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #18 from Abir-Tx/Abir-Tx/issue13 & issue6
- Loading branch information
Showing
4 changed files
with
70 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
#if !defined(DIRTREE_H) | ||
#define DIRTREE_H | ||
#include <iostream> | ||
#include <iomanip> | ||
#include <fstream> | ||
#include <iostream> | ||
|
||
void dirTree() | ||
{ | ||
using namespace std; | ||
string driveLetterHolder; | ||
|
||
ifstream driveLetterReader("C:\\SFO\\Data\\DriveLetterKeeper.dat"); | ||
|
||
while(getline(driveLetterReader, driveLetterHolder)) | ||
{ | ||
driveLetterHolder = driveLetterHolder; | ||
} | ||
|
||
//Starting the dir tree | ||
system("cls"); | ||
system("color 03"); | ||
cout<<setw(75)<<setfill(' ')<<"Directory Tree Viewer"<<endl<<endl; | ||
|
||
cout<<"Printing the folders structure view inside the selected drive: "<<endl; | ||
std::cout<<std::endl; | ||
string treeDir = "tree /f "+driveLetterHolder+":\\\"University Study\""; | ||
system(treeDir.c_str()); | ||
} | ||
#endif // DIRTREE_H |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters