                 expect(resp?.event).toBe('file_written_to_project')
                 done(err)
 
-    it "copies second file", (done) ->
+    it "copies src with directory and file", (done) ->
         @timeout(15000)
         api.call
             event : 'copy_path_between_projects'

                expect(resp?.event).toBe('text_file_read_from_project')
                expect(resp?.content).toBe(content)
                done(err)


                project_id: project_id2
                path      : path2
            cb    : (err, resp) ->
                expect(resp?.event).toBe('text_file_read_from_project')
                expect(resp?.content).toBe(content)
                done(err)

    it "copies file to directory", (done) ->
        # src:'B2/doc2.txt' tgt:'DIR3/ result:'DIR3/doc2.txt'
        @timeout(15000)
        api.call
            event : 'copy_path_between_projects'
            body  :
                src_project_id   : project_id
                src_path         : path2
                target_project_id: project_id2
                target_path      : 'DIR3/'
            cb    : (err, resp) ->
                expect(err).toEqual(null)
                expect(resp?.event).toBe('success')
                done(err)

    it "reads target file 3", (done) ->
        @timeout(15000)
        api.call
            event : 'read_text_file_from_project'
            body  :
                project_id: project_id2
                path      : 'DIR3/doc2.txt'
            cb    : (err, resp) ->
                expect(err).toEqual(null)
                expect(resp?.event).toBe('text_file_read_from_project')
                expect(resp?.content).toBe(content)
                done(err)

    it "copies directory to directory", (done) ->
        # src:'B2/' tgt:'DIR4/ result:'DIR4/doc2.txt'
        @timeout(15000)
        api.call
            event : 'copy_path_between_projects'
            body  :
                src_project_id   : project_id
                src_path         : 'B2/'
                target_project_id: project_id2
                target_path      : 'DIR4/'
            cb    : (err, resp) ->
                expect(err).toEqual(null)
                expect(resp?.event).toBe('success')
                done(err)

    it "reads target file 4", (done) ->
        @timeout(15000)
        api.call
            event : 'read_text_file_from_project'
            body  :
                project_id: project_id2
                path      : 'DIR4/doc2.txt'
            cb    : (err, resp) ->
                expect(err).toEqual(null)
                expect(resp?.event).toBe('text_file_read_from_project')
                expect(resp?.content).toBe(content)
                done(err)
