View Source file_utils (migraterl v0.1.2)

Internal module, handy functions for file and directory manipulation.

Summary

Types

directory/0

-type directory() :: file:name_all().

filename/0

-type filename() :: file:name_all().

Functions

read_directory(Dir)

-spec read_directory(Dir :: directory()) -> Result
                        when
                            Reason :: string(),
                            Error :: {error, Reason},
                            Ok :: {ok, [filename()]},
                            Result :: Ok | Error.

read_system_migrations()

-spec read_system_migrations() -> Result
                                when
                                    Reason :: string(),
                                    Error :: {error, Reason},
                                    Ok :: {ok, [filename()]},
                                    Result :: Ok | Error.