Skip to content

Commit

Permalink
use os
Browse files Browse the repository at this point in the history
  • Loading branch information
dogancanbakir committed Jun 5, 2023
1 parent 007128c commit b9945f5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions folder/folderutil_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ func TestMigrateDir(t *testing.T) {
// some files in a temp dir
sourceDir, _ := ioutil.TempDir("", "source")
defer os.RemoveAll(sourceDir)
ioutil.WriteFile(sourceDir+"/file1.txt", []byte("file1"), 0644)
ioutil.WriteFile(sourceDir+"/file2.txt", []byte("file2"), 0644)
os.WriteFile(sourceDir+"/file1.txt", []byte("file1"), 0644)
os.WriteFile(sourceDir+"/file2.txt", []byte("file2"), 0644)

// destination directory
destinationDir, _ := ioutil.TempDir("", "dest")
Expand Down

0 comments on commit b9945f5

Please sign in to comment.