projects
/
framework
/
web
/
webkit-efl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Text Selection Handlers not updated with the correct position
[framework/web/webkit-efl.git]
/
TizenScripts
/
tizen-memorytest
/
util.py
1
import os
2
3
def get_numbers(dirname, n=None):
4
result = []
5
for filename in os.listdir(dirname):
6
if not filename.isdigit():
7
continue
8
number = int(filename)
9
filepath = os.path.join(dirname, filename)
10
result.append((number, filepath))
11
result.sort()
12
if n is not None:
13
result = result[-n:]
14
result = [filepath for number, filepath in result]
15
return result