mirror of
https://github.com/spieglt/FlyingCarpet.git
synced 2025-09-04 16:24:55 +00:00
switch to cfg macro to get rid of warning on non-windows
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
## Version 8 adds the option to send folders to Android and iOS
|
||||
## Version 8 adds the option to send folders from Android and iOS
|
||||
|
||||
Android version is available [here](https://play.google.com/store/apps/details?id=dev.spiegl.flyingcarpet), or if you prefer to sideload, `android_FlyingCarpet.apk` is available on the [releases](https://github.com/spieglt/FlyingCarpet/releases) page.
|
||||
|
||||
iOS version [here](https://apps.apple.com/us/app/flying-carpet-file-transfer/id1637377410) or search the App Store for "Flying Carpet File Transfer".
|
||||
|
||||
Linux, macOS, and Windows versions available on the [releases](https://github.com/spieglt/FlyingCarpet/releases) page. Installers and standalone executable versions available.
|
||||
Linux, macOS, and Windows versions are available on the [releases](https://github.com/spieglt/FlyingCarpet/releases) page. Installers and standalone executable versions available.
|
||||
|
||||
# Flying Carpet
|
||||
|
||||
|
@@ -32,8 +32,7 @@ pub async fn send_file<T: UI>(
|
||||
.strip_prefix(prefix)?
|
||||
.to_string_lossy()
|
||||
.to_string();
|
||||
#[cfg(windows)]
|
||||
{
|
||||
if cfg!(windows) {
|
||||
filename = filename.replace("\\", "/");
|
||||
}
|
||||
send_file_details(
|
||||
|
Reference in New Issue
Block a user