fileutils
A module with various filesystem utility functions
Installation
dagger install github.com/vikram-dagger/daggerverse/fileutils@v0.1.1
Entrypoint
Return Type
Fileutils
Example
dagger -m github.com/vikram-dagger/daggerverse/fileutils@ed9adccd4f5f641b33c048d79362e78d88f5405f call \
func (m *myModule) example() *Fileutils {
return dag.
Fileutils()
}
@function
def example() -> dag.Fileutils:
return (
dag.fileutils()
)
@func()
example(): Fileutils {
return dag
.fileutils()
}
Types
Fileutils 🔗
tree() 🔗
Returns a tree representation of the directory provided as a string
Return Type
String !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
dir | Directory ! | - | No description provided |
Example
dagger -m github.com/vikram-dagger/daggerverse/fileutils@ed9adccd4f5f641b33c048d79362e78d88f5405f call \
tree --dir DIR_PATH
func (m *myModule) example(ctx context.Context, dir *Directory) string {
return dag.
Fileutils().
Tree(ctx, dir)
}
@function
async def example(dir: dagger.Directory) -> str:
return await (
dag.fileutils()
.tree(dir)
)
@func()
async example(dir: Directory): Promise<string> {
return dag
.fileutils()
.tree(dir)
}