Skip to content

Commit

Permalink
feat: Sony A7M3 Case 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
jonghyeons committed Sep 8, 2019
1 parent 2283f86 commit b670cdb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ import (

func main() {
flag.Parse()
// fmt.Println("option:", flag.Args())
dir, _ := filepath.Abs(filepath.Dir(os.Args[0]))
if len(flag.Args()) != 0 && flag.Args()[0] == "true" {
// $ photopic true
Expand All @@ -28,7 +29,7 @@ func main() {
fileType := fn[len(fn)-1]
if fileType == "JPG" {
os.Rename(file.Name(), "./jpg/"+file.Name())
} else if fileType == "RAF" || fileType == "CR2" {
} else if fileType == "RAF" || fileType == "CR2" || fileType == "ARW" {
os.Rename(file.Name(), "./raw/"+file.Name())
}
}
Expand Down

0 comments on commit b670cdb

Please sign in to comment.