mirror of
https://github.com/edcommonwealth/sqm-dashboards.git
synced 2026-03-07 21:48:16 -08:00
ECP-206 Delete the 3 info boxes for each sub-category on the Browse page
This commit is contained in:
parent
aa39303dfc
commit
b6675c2516
15 changed files with 43 additions and 63 deletions
|
|
@ -39,14 +39,14 @@ namespace :upload do
|
|||
|
||||
upload_filename = filename.split('sqm-dashboards')[1][1..]
|
||||
upload_directory = upload_filename.rpartition('/').first
|
||||
tmp_dir = upload_directory + '/'
|
||||
tmp_dir = "#{upload_directory}/"
|
||||
parent_dir = "/"
|
||||
|
||||
while tmp_dir.include?('/')
|
||||
first_dir = tmp_dir.split('/').first
|
||||
sftp.mkdir!("#{parent_dir}#{first_dir}/") unless sftp.dir.entries(parent_dir).map(&:name).include?(first_dir)
|
||||
|
||||
parent_dir += first_dir + '/'
|
||||
parent_dir += "#{first_dir}/"
|
||||
tmp_dir = tmp_dir.split('/')[1..].join('/')
|
||||
end
|
||||
sftp.mkdir!("#{parent_dir}#{tmp_dir}/") unless sftp.dir.entries(parent_dir).map(&:name).include?(first_dir)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue