 
 nikita = require '../../src'
-glob = require '../../src/misc/glob'
 test = require '../test'
 they = require 'ssh2-they'
 

        target: "#{scratch}"
      , (err, {status}) ->
        status.should.be.true() unless err
      .call (_, callback) ->
        glob ssh, "#{scratch}/**", dot: true, (err, files) ->
          callback err
      .promise()

      .system.copy
        source: "#{scratch}/a_dir"
        target: "#{scratch}/a_copy"
      .file.glob "#{scratch}/a_copy/**", dot: true, (err, {files}) ->
        throw err if err
        files.sort().should.eql [
          '/tmp/nikita-test/a_copy',
          '/tmp/nikita-test/a_copy/.a_hidden_file',
          '/tmp/nikita-test/a_copy/a_file'
        ]
      .promise()
    
    they 'set permissions', (ssh) ->
