Tony
dac4d53724
refactor(fs): reduce overhead of watch ( #2613 )
2025-04-19 13:35:14 +02:00
ayang
fef76bd504
feat(fs): add the size method to get the size of a file or directory ( #2095 )
2024-11-26 14:09:42 +02:00
Fabian-Lars
fecfd5533a
fix(fs)!: use tauri::scope::fs::Scope ( #2070 )
2024-11-21 16:57:25 +02:00
Amr Bashir
ed981027dd
feat(fs): improve readTextFile and readTextFileLines performance ( #1962 )
2024-11-21 15:43:51 +02:00
Amr Bashir
3e78173df9
fix(fs): ignore metadata error while reading dir entries ( #2018 )
...
* fix(fs): ignore metadata error while reading dir entries
closes #2014
* remove package manager
2024-11-11 18:02:03 +02:00
bWanShiTong
14cee64c82
fix(fs): fix compilation on targets with pointer width 16 and 32 ( #1958 )
2024-10-21 15:07:55 +03:00
Amr Bashir
ae8024565f
perf(fs): improve FileHandle.read performance ( #1950 )
...
* perf(fs): improve `FileHandle.read` performance
* handle different target pointer width
* improve `writeTextFile` performance
* revert packageManager field
* change file
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2024-10-20 08:49:01 -03:00
Fabian-Lars
fc9b189e83
fix(fs): ignore OS specific paths in scope deserialization ( #1837 )
2024-09-26 02:43:33 +03:00
SRutile
9291e4d2ca
fix(fs): support any UTF-8 path in writeFile ( #1640 )
...
* In the `writeFile` function, when `options.baseDir` is not set, convert `path` to URL to avoid errors caused by Chinese characters.
* fmt
* use TextEncoder
* use percent encoding
* add change file
* fmt
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2024-09-11 12:02:24 -03:00
Amr Bashir
a2fe55512f
refactor: add methods and implement traits for FilePath and SafeFilePath ( #1727 )
...
* refactor: add methods and implement traits for `FilePath` and `SafeFilePath`
closes #1726
* clippy
* path -> as_path
* fix prettierignore
* Discard changes to Cargo.lock
* Discard changes to Cargo.toml
* update tauri deps
2024-09-05 14:12:40 +03:00
Lucas Fernandes Nogueira
51819c601f
fix(fs): writeFile command implementation on Android ( #1708 )
2024-09-02 13:13:53 -03:00
Tony
f7280c8830
fix(fs): can't use Windows path ( #1710 )
...
* Fix fs can't use Windows path
* Add change file
* Implement `Deserialize` instead
* Rename FilePath's visitor to FilePathVisitor
* Add todo and test
* Clippy
* Unused variable
2024-09-02 18:24:37 +03:00
mikoto2000
448846b834
feat(fs): resolve content URIs on Android ( #1658 )
...
* Implemented writeTextFile on Android.
* Added license headers.
* fix fmt checks.
* implement more file APIs
* change file
* cleanup
* refactor dialog plugin to leverage new FS APIs
* implement metadata functions
* fix build
* expose FS rust API
* resolve resources on android
* update pnpm
* update docs
---------
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
2024-08-23 13:35:53 -03:00
Fabian-Lars
2b269f1b6d
fix(fs): Apply requireLiteralLeadingDot config ( #1585 )
...
* fix(fs): Apply requireLiteralLeadingDot config
* fix deserialization
* reword changefile [skip ci]
2024-07-25 16:11:26 +02:00
Fabian-Lars
1146f068e1
fix(fs): Make read/write commands async to not block the main thread ( #1477 )
...
* fix(fs): Make commands async to not block the main thread so long
* more async
* changefile
2024-06-24 11:27:34 +03:00
Lucas Fernandes Nogueira
1d8662e71a
feat(fs): use IPC streaming for read and write file ( #1251 )
...
* feat(fs): use IPC streaming for read and write file
* fix build
* clippy
2024-05-29 22:17:47 -03:00
Amr Bashir
e3d41f4011
fix: use webview's resources table ( #1191 )
...
* fix: use webview's resources table
* fix clipboard into_img usage
* fix mobile
2024-04-18 03:19:24 +02:00
Lucas Fernandes Nogueira
cacf544d51
chore(deps): update to tauri beta.9 ( #1037 )
2024-03-07 00:08:52 -03:00
Lucas Nogueira
8461cf1d1b
chore: update to tauri beta.3
2024-02-19 17:10:49 -03:00
Tillmann
d198c01486
feat: update to tauri beta, add permissions ( #862 )
...
Co-authored-by: Lucas Nogueira <lucas@tauri.app >
Co-authored-by: Lucas Nogueira <lucas@crabnebula.dev >
2024-02-03 15:14:41 -03:00
阿良仔
ea8eadce85
fix(fs): match default value of create option with js documentation ( #865 )
...
* fix(fs): inconsistency in guest-js & rust side
* Update .changes/fix-fs-write-default-option.md
2024-01-02 20:44:09 +02:00
Amr Bashir
c60123093d
fix(fs): fix panic due to unwrap & truncate by default ( #847 )
...
* fix(fs): fix panic due to unwrap & truncate by default
closes #846
* fmt and change file
2023-12-27 15:27:45 +02:00
Amr Bashir
69a1fa099c
feat(fs): improved API ( #751 )
...
* feat(fs): improved API
* fmt
* fix unix builds
* again
* clippy
* clippy
* fix import in docs examples
* fmt, clippy
* Update linux.rs
* add API for watch
* fix with `watcher` feature flag
* use baseDir for all commands
* do not export close function
* fix build
* organize and address review comments
* fmt
* generated files
* rename FsFile to FileHandle, move APIs and docs
* extend example
* extend `Resource`
* actually extend it
---------
Co-authored-by: FabianLars <fabianlars@fabianlars.de >
Co-authored-by: Lucas Nogueira <lucas@tauri.studio >
2023-12-19 22:08:34 -03:00
Lucas Fernandes Nogueira
2d6bfbfacf
feat(fs): include full error message ( #826 )
2023-12-18 15:01:47 -03:00
Lucas Fernandes Nogueira
5914fb9f36
chore: add license headers ( #384 )
...
* feat: check for license headers
* add headers
* format
2023-05-21 16:56:10 -03:00
Lucas Fernandes Nogueira
702b7b36bd
refactor: move deleted tauri APIs, prepare for next release ( #355 )
2023-05-13 12:32:30 -03:00
Lucas Fernandes Nogueira
4539c03f95
feat(fs): add plugin ( #308 )
2023-04-16 08:53:19 -03:00