edit txt files. keyboard shortcut for share tools
This commit is contained in:
@@ -36,7 +36,8 @@ def file_stat(path, filename):
|
||||
'size': file_size_MB(s.st_size),
|
||||
'mtime': file_date_human(s.st_mtime),
|
||||
'name': filename,
|
||||
'url': path2url(filename)
|
||||
'url': path2url(filename),
|
||||
'editable': (s.st_size < 10240 and filename.endswith(".txt"))
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user