patch 9.0.1007: there is no way to get a list of swap file names

Problem:    There is no way to get a list of swap file names.
Solution:   Add the swapfilelist() function.  Use it in the test script to
            clean up.  Remove deleting individual swap files.
This commit is contained in:
Bram Moolenaar
2022-12-05 13:50:55 +00:00
parent 65214053f6
commit c216a7a21a
14 changed files with 104 additions and 71 deletions

View File

@ -1031,6 +1031,7 @@ Buffers, windows and the argument list:
getwininfo() get a list with window information
getchangelist() get a list of change list entries
getjumplist() get a list of jump list entries
swapfilelist() list of existing swap files in 'directory'
swapinfo() information about a swap file
swapname() get the swap file path of a buffer