title: Create a directory in Debian file creation task
body: <p>I have the following gradle task that I use to create a debian archive:</p>
  
  <pre><code>val packDeb by tasks.registering(Deb::class) {
      mkdir("/var/lib/salam/")
  }
  </code></pre>
  
  <p>But I get the following error when I run <code>./gradlew build</code> </p>
  
  <p><code>org.gradle.api.UncheckedIOException: Failed to create directory '/var/lib/salam'</code></p>
  
  <p>What am I doing wrong here?</p>