mirror of
https://github.com/neocities/neocities.git
synced 2025-04-25 01:32:36 +02:00
site: add final slash to file list
This commit is contained in:
parent
a385ae7d1f
commit
c8b748069c
1 changed files with 1 additions and 1 deletions
|
@ -1240,7 +1240,7 @@ class Site < Sequel::Model
|
||||||
list = Dir.glob(File.join(files_path(path), '*')).collect do |file_path|
|
list = Dir.glob(File.join(files_path(path), '*')).collect do |file_path|
|
||||||
extname = File.extname file_path
|
extname = File.extname file_path
|
||||||
file = {
|
file = {
|
||||||
path: file_path.gsub(base_files_path, ''),
|
path: file_path.gsub(base_files_path+'/', ''),
|
||||||
name: File.basename(file_path),
|
name: File.basename(file_path),
|
||||||
ext: extname.gsub('.', ''),
|
ext: extname.gsub('.', ''),
|
||||||
is_directory: File.directory?(file_path),
|
is_directory: File.directory?(file_path),
|
||||||
|
|
Loading…
Add table
Reference in a new issue