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
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
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ự
-
jira-created
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 70/100
nunomaduro/phpinsights#745 ·
-
status/awaiting_triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
WordPress/plugin-check#1486 ·
-
enhancement
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 88/100
az-digital/az_quickstart#6019 ·