             fileView2.click()
             treeView.trigger "tree-view:paste"
 
-            expect(fs.existsSync("#{dirPath2}/#{filePath.split('/').pop()}")).toBeTruthy()
+            expect(fs.existsSync(path.join(dirPath2, path.basename(filePath)))).toBeTruthy()
             expect(fs.existsSync(filePath)).toBeFalsy()
 
           describe 'when the target destination file exists', ->

            dirView2.click()
            treeView.trigger "tree-view:paste"

            expect(fs.existsSync("#{dirPath2}/#{filePath.split('/').pop()}")).toBeTruthy()
            expect(fs.existsSync(filePath)).toBeFalsy()

      describe "when multiple files have been cut", ->

            fileView2.click()
            treeView.trigger "tree-view:paste"

            expect(fs.existsSync(path.join(dirPath2, path.basename(filePath)))).toBeTruthy()
            expect(fs.existsSync(filePath)).toBeTruthy()

          describe 'when target already exists', ->
