Skip to content

Navigation Menu

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 0bb295a

Browse filesBrowse files
committed
no formatting ouput but still output
1 parent cc20fde commit 0bb295a
Copy full SHA for 0bb295a

File tree

1 file changed

+8
-1
lines changed
Filter options

1 file changed

+8
-1
lines changed

‎main.cpp

Copy file name to clipboardExpand all lines: main.cpp
+8-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,14 @@ int main(int argc, char* argv[]) {
1616
auto f = get_files(".");
1717

1818
auto dir = new Directory(".");
19-
std::cout << dir->get_paths()[0].get_perms() << std::endl;
19+
for (File file : dir->get_paths()) {
20+
std::cout << file.get_perms() << ' ';
21+
std::cout << file.get_size() << ' ';
22+
std::cout << file.get_group() << ' ';
23+
std::cout << file.get_user() << ' ';
24+
std::cout << file.get_modified() << ' ';
25+
std::cout << file.get_path().path() << std::endl;
26+
}
2027

2128
return 0;
2229
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.