Dagger
Search

fileutils

A module with various filesystem utility functions

Installation

dagger install github.com/vikram-dagger/daggerverse/fileutils@v0.1.2

Entrypoint

Return Type
Fileutils
Example
dagger -m github.com/vikram-dagger/daggerverse/fileutils@12778c950e8e680982f0889b5712bbce29702a81 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
NameTypeDefault ValueDescription
dirDirectory !-No description provided
Example
dagger -m github.com/vikram-dagger/daggerverse/fileutils@12778c950e8e680982f0889b5712bbce29702a81 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)
}