File tree 2 files changed +14
-14
lines changed
2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -242,17 +242,17 @@ func renameIfDuplicate(destination string) (string, error) {
242
242
}
243
243
}
244
244
245
- func moveFile (source string , destination string ) error {
246
- destination , err := renameIfDuplicate (destination )
247
- if err != nil {
248
- outPutLog ("Move file function error" , err )
249
- }
250
- err = os .Rename (source , destination )
251
- if err != nil {
252
- outPutLog ("Move file function error" , err )
253
- }
254
- return err
255
- }
245
+ // func moveFile(source string, destination string) error {
246
+ // destination, err := renameIfDuplicate(destination)
247
+ // if err != nil {
248
+ // outPutLog("Move file function error", err)
249
+ // }
250
+ // err = os.Rename(source, destination)
251
+ // if err != nil {
252
+ // outPutLog("Move file function error", err)
253
+ // }
254
+ // return err
255
+ // }
256
256
257
257
func pasteFile (src string , dst string ) error {
258
258
srcFile , err := os .Open (src )
Original file line number Diff line number Diff line change @@ -110,9 +110,9 @@ func InitConfigFile() {
110
110
if err := createDirectories (
111
111
config .MainDir , config .DataDir ,
112
112
config .CacheDir ,
113
- config . DataDir + trashDirectory ,
114
- config . DataDir + trashDirectoryFiles ,
115
- config . DataDir + trashDirectoryInfo ,
113
+ basedir . DataHome + trashDirectory ,
114
+ basedir . DataHome + trashDirectoryFiles ,
115
+ basedir . DataHome + trashDirectoryInfo ,
116
116
); err != nil {
117
117
log .Fatalln ("Error creating directories:" , err )
118
118
}
You can’t perform that action at this time.
0 commit comments