File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff 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 :(
2628Future <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 {
You can’t perform that action at this time.
0 commit comments