Add tasks for all the new languages
This commit is contained in:
parent
9dc3c2bb62
commit
bba7bfd280
13208 changed files with 134745 additions and 0 deletions
20
Task/File-size/LiveCode/file-size.livecode
Normal file
20
Task/File-size/LiveCode/file-size.livecode
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
// root folder
|
||||
set the defaultfolder to "/"
|
||||
repeat for each line fline in (the detailed files)
|
||||
if item 1 of fline is "input.txt" then
|
||||
put item 2 of fline --bytes
|
||||
exit repeat
|
||||
end if
|
||||
end repeat
|
||||
|
||||
// current working dir of stack
|
||||
put the effective filename of this stack into tPath
|
||||
set the itemDelimiter to slash
|
||||
delete last item of tPath
|
||||
set the defaultfolder to tPath
|
||||
repeat for each line fline in (the detailed files)
|
||||
if item 1 of fline is "input.txt" then
|
||||
put item 2 of fline
|
||||
exit repeat
|
||||
end if
|
||||
end repeat
|
||||
Loading…
Add table
Add a link
Reference in a new issue