From b9945f57aef1d1eb501a9b4dd250e29fac97f5f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Do=C4=9Fan=20Can=20Bak=C4=B1r?= Date: Mon, 5 Jun 2023 11:27:31 +0300 Subject: [PATCH] use os --- folder/folderutil_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/folder/folderutil_test.go b/folder/folderutil_test.go index 34c506f..bd23ca5 100644 --- a/folder/folderutil_test.go +++ b/folder/folderutil_test.go @@ -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")