Skip to content

Commit a2cca85

Browse files
committed
260 updates
1 parent c30cb00 commit a2cca85

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,7 @@ Possible values:
141141
- folders&files - (default) select both of them.
142142
143143
```yaml
144-
sizeCalculatingMethod: cumulative
144+
sizeCalculatingMethod: cumulative
145145
```
146146
Possible values (optional):
147147
- cumulative - (default) sizes of subfolders will be included into size of the parent folder

config/config.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ func (c *Config) createDefaultConfigYamlFile() {
6464
f := files.CreateFile(&defaultConfigFile)
6565
defer f.Close()
6666

67-
fmt.Fprintf(f, "%s", ConfigTemplate)
67+
fmt.Fprintf(f, ConfigTemplate, *c.Analyzer.Path)
6868

6969
// fmt.Fprintf(f, "analyzer:")
7070
// files.PrintEndOfLine(f)

config/default.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ func (c *Config) setDefaultValues() {
2121
c.Filter.Depth = &d
2222
}
2323

24-
if c.Analyzer.Path == nil {
24+
if c.Analyzer.Path == nil || *c.Analyzer.Path == "" {
2525
dir, _ := os.Getwd()
2626
c.Analyzer.Path = &dir
2727
}

config/template.go

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@ analyzerOptions:
1111
1212
# path - (optional) name of disk or folder for analyzing inside them
1313
# 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
1616
1717
# sizeCalculatingMethod - (optional) ndefines how the program calculates folder size
1818
# Possible values:

0 commit comments

Comments
 (0)