Skip to content

Commit 44a5a48

Browse files
committed
fuck windoz
1 parent 009122f commit 44a5a48

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/moving.dart

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ File findNotExistingName(File initialFile) {
2323
/// This will create symlink on unix and shortcut on windoza
2424
///
2525
/// Uses [findNotExistingName] for safety
26+
///
27+
/// WARN: Crashes with non-ascii names :(
2628
Future<File> createShortcut(Directory location, File target) async {
2729
final name = '${p.basename(target.path)}${Platform.isWindows ? '.lnk' : ''}';
2830
final link = findNotExistingName(File(p.join(location.path, name)));
@@ -141,7 +143,7 @@ Stream<int> moveFiles(
141143
// in case powershell fails/whatever
142144
print('Creating shortcut for '
143145
'${p.basename(mainFile.path)} in ${p.basename(folder.path)} '
144-
'failed :( - coping normal file instead');
146+
'failed :(\n$e\n - coping normal file instead');
145147
result = await moveFile();
146148
}
147149
} else {

0 commit comments

Comments
 (0)