Replace Filesystem, FTP with FlySystem in order to support more filesystems
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 5/5
- Thời gian dự kiến
- Hơn một tuần
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- php
- Lĩnh vực
- operating-systems, tooling
Hướng nghiên cứu
Bắt đầu bằng cách xác định các module FileSystem và FTP tùy chỉnh được nêu trong issue, sau đó so sánh các API của chúng với FlySystem API được liên kết trong phần mô tả. Lập bản đồ hành vi của các module hiện có và những operation được hỗ trợ trước khi quyết định phạm vi migration; công việc được xem là hoàn tất khi phần thay thế hỗ trợ các operation bắt buộc mà không làm mất chức năng hiện tại và các bài kiểm thử của module đều đạt.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
"FlySystem is a filesystem abstraction which allows you to easily swap out a local filesystem for a remote one. Reducing technical debt and chance of vendor lock-in."
It could replace the custom FileSystem and FTP modules and offer support for many more filesystems. Here is a list of what's available today :
- Local
- Azure
- AWS S3 V2
- AWS S3 V3
- Copy.com
- Dropbox
- FTP / SFTP
- GridFS
- Memory
- Rackspace
- WebDAV
- PHPCR
- ZipArchive
The API
http://flysystem.thephpleague.com/api/
Write Files
$filesystem->write('path/to/file.txt', 'contents');
Update Files
$filesystem->update('path/to/file.txt', 'new contents');
Write or Update Files
$filesystem->put('path/to/file.txt', 'contents');
Read Files
$contents = $filesystem->read('path/to/file.txt');
Check if a file exists
$exists = $filesystem->has('path/to/file.txt');
Delete Files
$filesystem->delete('path/to/file.txt');
Read and Delete
$contents = $filesystem->readAndDelete('path/to/file.txt');
Rename Files
$filesystem->rename('filename.txt', 'newname.txt');
Copy Files
$filesystem->copy('filename.txt', 'duplicate.txt');
Get Mimetypes
$mimetype = $filesystem->getMimetype('path/to/file.txt');
Get Timestamps
$timestamp = $filesystem->getTimestamp('path/to/file.txt');
Get File Sizes
$size = $filesystem->getSize('path/to/file.txt');
Create Directories
$filesystem->createDir('path/to/nested/directory');
Directories are also made implicitly when writing to a deeper path
$filesystem->write('path/to/file.txt', 'contents');
Delete Directories
$filesystem->deleteDir('path/to/directory');
- Ngôn ngữ chính
- PHP
- Star
- 20
- Fork
- 7
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của Codeception/module-filesystem
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
Codeception/module-filesystem#25 · 3 bình luận ·
-
Feature request: \Codeception\Module\Filesystem::writeToFile create a directory recursively.Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 45/100
Tất cả issue của Codeception/module-filesystem
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
taskforcesh/bullmq#5238 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug] v-change-database-password reports success but doesn't change the password when MySQL validate_password rejects itCó thể đã có người làm @bfs2021 đã nhận hôm nay. Đang mởbug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
Automattic/jetpack#55517 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Address edit modal: what the customer types before the fields load is reset to the saved valueĐang mởMajor
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
PrestaShop/ps_onepagecheckout#245 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
wpvc
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
10up/ElasticPress#4420 ·
Maintainer thường phản hồi trong vòng 1 ngày