mirror of
https://github.com/crunchy-labs/crunchy-cli.git
synced 2026-01-21 04:02:00 -06:00
Fixed incomplete filename
This commit is contained in:
parent
1f1f6feeca
commit
bc3bfb1c5f
1 changed files with 1 additions and 1 deletions
|
|
@ -263,7 +263,7 @@ func createOrDefaultClient(proxy string) (*http.Client, error) {
|
||||||
|
|
||||||
func freeFileName(filename string) (string, bool) {
|
func freeFileName(filename string) (string, bool) {
|
||||||
ext := path.Ext(filename)
|
ext := path.Ext(filename)
|
||||||
base := strings.TrimRight(filename, ext)
|
base := strings.TrimSuffix(filename, ext)
|
||||||
j := 0
|
j := 0
|
||||||
for ; ; j++ {
|
for ; ; j++ {
|
||||||
if _, stat := os.Stat(filename); stat != nil && !os.IsExist(stat) {
|
if _, stat := os.Stat(filename); stat != nil && !os.IsExist(stat) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue