mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
This commit is contained in:
parent
ded6c38061
commit
7d6e15fa66
@ -227,8 +227,14 @@ pub fn (mut zftp FTP) dir() ![]string {
|
|||||||
mut dir := []string{}
|
mut dir := []string{}
|
||||||
sdir := list_dir.bytestr()
|
sdir := list_dir.bytestr()
|
||||||
for lfile in sdir.split('\n') {
|
for lfile in sdir.split('\n') {
|
||||||
|
if lfile.len > 56 {
|
||||||
|
dir << lfile#[56..lfile.len - 1]
|
||||||
|
continue
|
||||||
|
}
|
||||||
if lfile.len > 1 {
|
if lfile.len > 1 {
|
||||||
dir << lfile.after(' ').trim_space()
|
trimmed := lfile.after(':')
|
||||||
|
dir << trimmed#[3..trimmed.len - 1]
|
||||||
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return dir
|
return dir
|
||||||
|
Loading…
Reference in New Issue
Block a user