How to delete svn folders via FTP on Windows hosting

I accidentally copied most of the folder tree from a working copy of SVN to my shared Windows web host via FTP.

The site is now littered with .svn files, and I need a way to clean them. The only access to the server is via FTP or running a script on the server.

Does anyone have a script that can be remotely run to delete files via FTP from my development machine (any Windows / Linux language is fine) or a script in ASP, ASP.net or PHP, I can run it directly on a Windows server so that delete these directories?

+3
source share
1 answer

What about:

for /f "tokens=* delims=" %%i in (’dir /s /b /a:d *svn’) do ( rd /s /q "%%i" )

http://www.axelscript.com/2008/03/11/delete-all-svn-files-in-windows

, php

<?php
echo `for /f "tokens=* delims=" %%i in (’dir /s /b /a:d *svn’) do ( rd /s /q "%%i" )`;
?>
+1

Source: https://habr.com/ru/post/1736919/


All Articles