mirror of
https://github.com/vbatts/freezing-octo-hipster.git
synced 2024-11-21 14:35:39 +00:00
manage-pictures: ignore gif files
Signed-off-by: Vincent Batts <vbatts@hashbangbash.com>
This commit is contained in:
parent
4ab3be9bc6
commit
06d43c4356
1 changed files with 3 additions and 0 deletions
|
@ -43,6 +43,9 @@ func main() {
|
||||||
if !info.Mode().IsRegular() {
|
if !info.Mode().IsRegular() {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
if filepath.Ext(path) == ".gif" {
|
||||||
|
return nil
|
||||||
|
}
|
||||||
if *flMove {
|
if *flMove {
|
||||||
if err := ps.Move(path, *flVerbose); err != nil {
|
if err := ps.Move(path, *flVerbose); err != nil {
|
||||||
log.Printf("WARN: %q failed with %s", path, err)
|
log.Printf("WARN: %q failed with %s", path, err)
|
||||||
|
|
Loading…
Reference in a new issue