aboutsummaryrefslogtreecommitdiff
path: root/config.dot/awesome.link/functions.lua
diff options
context:
space:
mode:
authorSilvio Rhatto <rhatto@riseup.net>2013-12-27 15:09:22 -0200
committerSilvio Rhatto <rhatto@riseup.net>2013-12-27 15:09:22 -0200
commita3ff98282e6290f2bbb907bbbb63daee6798872a (patch)
tree8f9311237c84878130d80db58bb1054499e7440e /config.dot/awesome.link/functions.lua
downloadawesome-a3ff98282e6290f2bbb907bbbb63daee6798872a.tar.gz
awesome-a3ff98282e6290f2bbb907bbbb63daee6798872a.tar.bz2
Initial import
Diffstat (limited to 'config.dot/awesome.link/functions.lua')
-rw-r--r--config.dot/awesome.link/functions.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/config.dot/awesome.link/functions.lua b/config.dot/awesome.link/functions.lua
new file mode 100644
index 0000000..aa98502
--- /dev/null
+++ b/config.dot/awesome.link/functions.lua
@@ -0,0 +1,4 @@
+function file_exists(name)
+ local f=io.open(name,"r")
+ if f~=nil then io.close(f) return true else return false end
+end