mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-23 12:12:21 -05:00
remove extraneous dots from paths
This commit is contained in:
1 file changed
+2
-1
@@ -89,7 +89,8 @@ class ModelFile < ApplicationRecord
|
||||
end
|
||||
|
||||
def filename_without_extension
|
||||
File.join(File.dirname(filename), basename(include_extension: false))
|
||||
dirname = File.dirname(filename)
|
||||
File.join([dirname, basename(include_extension: false)].reject { |it| it == "." })
|
||||
end
|
||||
|
||||
def name
|
||||
|
||||
Reference in new issue
Block a user