This website works better with JavaScript.
Home
Explore
Help
Sign In
tovi
/
PackageManager
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Remove debug println's
feature/create-install-pkgs
Tovi Jaeschke-Rogers
3 years ago
parent
3d4f5016e0
commit
12ce07e87e
3 changed files
with
1 additions
and
6 deletions
Unified View
Diff Options
Show Stats
Download Patch File
Download Diff File
+1
-1
Client/Database/Init.go
+0
-2
Client/Filesystem/CopyFile.go
+0
-3
Client/Filesystem/ManageFileBucket.go
+ 1
- 1
Client/Database/Init.go
View File
@ -23,7 +23,7 @@ func InitConfigDir() error {
)
)
_
,
e
=
os
.
Stat
(
Variables
.
ConfigDir
)
_
,
e
=
os
.
Stat
(
Variables
.
ConfigDir
)
if
os
.
IsNotExist
(
e
)
{
if
os
.
IsNotExist
(
e
)
{
os
.
MkdirAll
(
Variables
.
ConfigDir
,
0644
)
return
os
.
MkdirAll
(
Variables
.
ConfigDir
,
0644
)
}
}
return
e
return
e
}
}
+ 0
- 2
Client/Filesystem/CopyFile.go
View File
@ -1,7 +1,6 @@
package
Filesystem
package
Filesystem
import
(
import
(
"fmt"
"io/fs"
"io/fs"
"io/ioutil"
"io/ioutil"
"os"
"os"
@ -42,7 +41,6 @@ func CopyFile(src, dest string) error {
e
=
ioutil
.
WriteFile
(
dest
,
input
,
fileInfo
.
Mode
(
)
)
e
=
ioutil
.
WriteFile
(
dest
,
input
,
fileInfo
.
Mode
(
)
)
if
e
!=
nil
{
if
e
!=
nil
{
fmt
.
Println
(
e
)
return
e
return
e
}
}
+ 0
- 3
Client/Filesystem/ManageFileBucket.go
View File
@ -1,7 +1,6 @@
package
Filesystem
package
Filesystem
import
(
import
(
"fmt"
"os"
"os"
bolt
"go.etcd.io/bbolt"
bolt
"go.etcd.io/bbolt"
@ -21,8 +20,6 @@ func AddFileToBucket(bucket *bolt.Bucket, key, filePath string) error {
return
nil
return
nil
}
}
fmt
.
Println
(
fileObject
)
fileObjectBytes
,
e
=
fileObject
.
ToBytes
(
)
fileObjectBytes
,
e
=
fileObject
.
ToBytes
(
)
if
e
!=
nil
{
if
e
!=
nil
{
return
e
return
e
Write
Preview
Loading…
Cancel
Save