mirror of
https://github.com/localsend/localsend.git
synced 2026-08-07 07:14:52 +00:00
16 lines
823 B
Dart
16 lines
823 B
Dart
// This file is automatically generated, so please do not edit it.
|
|
// @generated by `flutter_rust_bridge`@ 2.12.0.
|
|
|
|
// ignore_for_file: invalid_use_of_internal_member, unused_import, unnecessary_import
|
|
|
|
import 'package:flutter_rust_bridge/flutter_rust_bridge_for_generated.dart';
|
|
import 'package:localsend_isolates/rust/frb_generated.dart';
|
|
|
|
/// Rewrites `name` into a file name that is legal on the current platform,
|
|
/// replacing illegal characters with `_`.
|
|
String sanitizeFileName({required String name}) => RustLib.instance.api.crateApiFilenameSanitizeFileName(name: name);
|
|
|
|
/// Whether `name` is a legal file name on the current platform, i.e. whether
|
|
/// [sanitize_file_name] would leave it untouched.
|
|
bool isValidFileName({required String name}) => RustLib.instance.api.crateApiFilenameIsValidFileName(name: name);
|