Skip to content
This repository has been archived by the owner on Jul 25, 2023. It is now read-only.

Commit

Permalink
Added custom Windows cache path
Browse files Browse the repository at this point in the history
  • Loading branch information
redsolver committed Mar 9, 2021
1 parent 8c73472 commit b2f2e42
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bin/yt_splitter.dart
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,11 @@ void main(List<String> arguments) async {

print('YT video: $videoId...');

final path = join(cacheHome.path, 'yt-splitter', videoId);
final path = join( // TODO Maybe fallback to /tmp
Platform.isWindows ? Platform.environment['TMP'] : cacheHome.path,
'yt-splitter',
videoId,
);

Directory(path).createSync(recursive: true);

Expand Down

0 comments on commit b2f2e42

Please sign in to comment.