mirror of
https://github.com/foss42/apidash.git
synced 2025-12-02 02:39:19 +08:00
refactor: rename getTempFilePath to getDocumentsDirectoryFilePath for clarity
This commit is contained in:
@@ -34,9 +34,9 @@ Future<String?> getFileDownloadpath(String? name, String? ext) async {
|
||||
return null;
|
||||
}
|
||||
|
||||
Future<String?> getTempFilePath(String? name, String? ext) async {
|
||||
final Directory tempDir = await getApplicationCacheDirectory();
|
||||
name = name ?? getTempFileName();
|
||||
Future<String?> getDocumentsDirectoryFilePath(String name, String? ext) async {
|
||||
final Directory tempDir = await getApplicationDocumentsDirectory();
|
||||
name = name;
|
||||
ext = (ext != null) ? ".$ext" : "";
|
||||
String path = '${tempDir.path}/$name$ext';
|
||||
int num = 1;
|
||||
|
||||
Reference in New Issue
Block a user