Skip to content
/ dirTree Public

The tree utility. Lists a tree of directories and files

License

Notifications You must be signed in to change notification settings

baza04/dirTree

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Утилита tree.

Выводит дерево каталогов и файлов (если указана опция -f).
Первым аргументом принимает путь, вторым флаг -f

В данном проекте использовались стандартные пакеты golang:
"fmt", "io", "io/ioutil", "os", f также структуры и методы.

Запускать тесты через go test -v находясь в папке c заданием (без папки .git).

После запуска вы должны увидеть следующий результат:

$ go test -v
=== RUN   TestTreeFull
--- PASS: TestTreeFull (0.00s)
=== RUN   TestTreeDir
--- PASS: TestTreeDir (0.00s)
PASS
ok      coursera/homework/tree     0.127s
go run main.go . -f
├───main.go (1881b)
├───main_test.go (1318b)
└───testdata
	├───project
	│	├───file.txt (19b)
	│	└───gopher.png (70372b)
	├───static
	│	├───css
	│	│	└───body.css (28b)
	│	├───html
	│	│	└───index.html (57b)
	│	└───js
	│		└───site.js (10b)
	├───zline
	│	└───empty.txt (empty)
	└───zzfile.txt (empty)
go run main.go .
└───testdata
	├───project
	├───static
	│	├───css
	│	├───html
	│	└───js
	└───zline

About

The tree utility. Lists a tree of directories and files

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages