mirror of
https://github.com/neocities/neocities.git
synced 2025-04-24 17:22:35 +02:00
show dotfiles in editor
This commit is contained in:
parent
ca71db54ba
commit
9bd9d7cc3a
1 changed files with 1 additions and 1 deletions
|
@ -1226,7 +1226,7 @@ class Site < Sequel::Model
|
|||
end
|
||||
|
||||
def file_list(path='')
|
||||
list = Dir.glob(File.join(files_path(path), '*')).collect do |file_path|
|
||||
list = Dir.glob(File.join(files_path(path), '*'), File::FNM_DOTMATCH).reject { |entry| File.basename(entry) == '.' || File.basename(entry) == '..' }.collect do |file_path|
|
||||
extname = File.extname file_path
|
||||
file = {
|
||||
path: file_path.gsub(base_files_path+'/', ''),
|
||||
|
|
Loading…
Add table
Reference in a new issue