File_list
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
| # `find test -type f | xargs ls`.split("\n")
def dir(file)
file.each do |f|
if File.directory?(f) == true
file=`ls #{f}`.split("\n").map{|i|f+"\\"+i}
dir(file)
else
`ls #{f}`.split("\n").each do |i|
system "rm #{i}"
system "touch #{i}"
end
end
end
end
target="D:\\Thunder\\XLGameBox\\"
file=`ls #{target}`.split("\n").map{|i|target+i}
dir(file)
|