Box.File (box v0.15.1)

View Source

Summary

Functions

Walks folder structure. The folder is expanded if that's not already the case so expect to walker to receive full path.

Types

directory_walker()

@type directory_walker() :: ({:dir, Path.t()}, any() ->
                         :discard
                         | :continue
                         | {:rename, Path.t()}
                         | {:update, any()})

file_walker()

@type file_walker() :: ({:file, Path.t()}, any() -> any())

walker_function()

@type walker_function() :: directory_walker() | file_walker()

Functions

walk_folder(folder, accumulator, function)

@spec walk_folder(Path.t(), any(), walker_function()) :: any()

Walks folder structure. The folder is expanded if that's not already the case so expect to walker to receive full path.