DirectoryInput

interface DirectoryInput : QualifiedContent


A QualifiedContent of type directory.

This means the getFile is the root directory containing the content.

This also contains incremental data if the transform is in incremental mode through getChangedFiles.

For a transform to run in incremental mode:

If the transform is not in incremental mode, getChangedFiles will not contain any information (it will not contain the list of all the files with state NOTCHANGED.)

When a root level directory is removed, and incremental mode is on, the instance will receive a DirectoryInput instance for the removed folder, but getFile will return a directory that does not exist. In this case, the transform should prcess this as a removed input.

Summary

Public functions

(Mutable)Map<File!, Status!>!

Returns the changed files.

Inherited functions

(Mutable)Set<QualifiedContent.ContentType!>!

Returns the type of content that the stream represents.

File!

Returns he location of the content.

String!

Returns the name of the content.

(Mutable)Set<Any!>!

Returns the scope of the content.

Public functions

getChangedFiles

fun getChangedFiles(): (Mutable)Map<File!, Status!>!

Returns the changed files. This is only valid if the transform is in incremental mode.

Jetpack Compose is Android's recommended modern toolkit for building native UI. It simplifies and accelerates UI development on Android. Quickly bring your app to life with less code, powerful tools, and intuitive Kotlin APIs.

Updated Dec 1, 2024

Discover the latest app development tools, platform updates, training, and documentation for developers across every Android device.

Updated Oct 12, 2024

Follow best practices, eliminate boilerplate code, and reduce fragmentation

Updated Oct 28, 2024