LogFilePath extension

on

Methods

checkDirectory(String root, String name) Future<void>

Available on LogManager, provided by the LogFilePath extension

检查日志文件夹是否存在,如果不存在,则创建文件夹
deleteDirectory(String path, {bool recursive = false}) Future<bool>

Available on LogManager, provided by the LogFilePath extension

删除绝对路径地址为path的文件夹, recursive: 是否递归删除,默认为false,如果未false,则删除的文件夹下如果存在文件, 则会删除失败
directoryPath() Future<String>

Available on LogManager, provided by the LogFilePath extension

找到正确的本地路径
documentPath() Future<String>

Available on LogManager, provided by the LogFilePath extension

日志文件的文件夹绝对地址
filename() String

Available on LogManager, provided by the LogFilePath extension

生成文件名称,目前的文件名称是以日期的天命名的
filepath(String filename) Future<String>

Available on LogManager, provided by the LogFilePath extension

日志文件的绝对地址
temporaryPath() Future<String>

Available on LogManager, provided by the LogFilePath extension

临时文件夹的路径