owncloud / testing

🔧 app for testing ownCloud
GNU Affero General Public License v3.0
3 stars 4 forks source link

Add api endpoint for moving a file in server root #187

Closed dpakach closed 2 years ago

dpakach commented 2 years ago

Description

Add api endpoint for moving a file in server root. Related issue https://github.com/owncloud/core/issues/39350, to make the mounted local external storage unavailable to the server by renaming the mount point.

Usage

endpoint- http:///ocs/v2.php/apps/testing/api/v1/file params-

eg.

curl http://localhost/ocs/v2.php/apps/testing/api/v1/file\?source\=test.txt\&target\=hello.txt -XMOVE -u admin:admin

Checklist:

phil-davis commented 2 years ago

https://drone.owncloud.com/owncloud/testing/1663/3/4 phpstan complains

sonarcloud[bot] commented 2 years ago

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

0.0% 0.0% Coverage
15.9% 15.9% Duplication