mirror of
https://github.com/octoleo/syncthing.git
synced 2025-01-06 16:44:04 +00:00
cmd/stfindignored: Default to current directory
This commit is contained in:
parent
d1f953b0dd
commit
02da7414ab
@ -19,6 +19,9 @@ import (
|
|||||||
func main() {
|
func main() {
|
||||||
flag.Parse()
|
flag.Parse()
|
||||||
root := flag.Arg(0)
|
root := flag.Arg(0)
|
||||||
|
if root == "" {
|
||||||
|
root = "."
|
||||||
|
}
|
||||||
|
|
||||||
vfs := fs.NewWalkFilesystem(fs.NewFilesystem(fs.FilesystemTypeBasic, root))
|
vfs := fs.NewWalkFilesystem(fs.NewFilesystem(fs.FilesystemTypeBasic, root))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user