File tree 4 files changed +5
-5
lines changed
4 files changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -141,7 +141,7 @@ Possible values:
141
141
- folders&files - (default) select both of them.
142
142
143
143
` ` ` yaml
144
- sizeCalculatingMethod : cumulative
144
+ sizeCalculatingMethod : cumulative
145
145
` ` `
146
146
Possible values (optional):
147
147
- cumulative - (default) sizes of subfolders will be included into size of the parent folder
Original file line number Diff line number Diff line change @@ -64,7 +64,7 @@ func (c *Config) createDefaultConfigYamlFile() {
64
64
f := files .CreateFile (& defaultConfigFile )
65
65
defer f .Close ()
66
66
67
- fmt .Fprintf (f , "%s" , ConfigTemplate )
67
+ fmt .Fprintf (f , ConfigTemplate , * c . Analyzer . Path )
68
68
69
69
// fmt.Fprintf(f, "analyzer:")
70
70
// files.PrintEndOfLine(f)
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ func (c *Config) setDefaultValues() {
21
21
c .Filter .Depth = & d
22
22
}
23
23
24
- if c .Analyzer .Path == nil {
24
+ if c .Analyzer .Path == nil || * c . Analyzer . Path == "" {
25
25
dir , _ := os .Getwd ()
26
26
c .Analyzer .Path = & dir
27
27
}
Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ analyzerOptions:
11
11
12
12
# path - (optional) name of disk or folder for analyzing inside them
13
13
# for example: abc/xyz (Unix-style) or C:\ or C:\temp (Windows-style) etc
14
- # The default value is the working directory
15
- path: C:\
14
+ # The default value (empty) is the working directory
15
+ path: %s
16
16
17
17
# sizeCalculatingMethod - (optional) ndefines how the program calculates folder size
18
18
# Possible values:
You can’t perform that action at this time.
0 commit comments