~vladh/fotografiska2

0f97c3211e7090f0eda190880c1058ec74f36c5c — Vlad-Stefan Harbuz 1 year, 10 months ago 29265d8
correct glob
2 files changed, 7 insertions(+), 2 deletions(-)

M Makefile
M main.go
M Makefile => Makefile +1 -1
@@ 1,6 1,6 @@
.PHONY: install

fotografiska:
fotografiska: *.go
	go build -o fotografiska .

install: fotografiska

M main.go => main.go +6 -1
@@ 257,9 257,14 @@ func main() {
	srcDir := validateDir(*srcDirArg)
	dstBaseDir := validateDir(*dstDirArg)

	paths, err := filepath.Glob(srcDir + "**/*")
	direct_paths, err := filepath.Glob(srcDir + "*")
	if err != nil { panic(err) }

	more_paths, err := filepath.Glob(srcDir + "**/*")
	if err != nil { panic(err) }

	paths := append(direct_paths, more_paths...)

	for idx, path := range paths {
		fileinfo, err := os.Stat(path)
		if err != nil { panic(err) }