end
def mime_type
- filetype = `file -bz #{trace_name}`.chomp
+ filetype = `/usr/bin/file -bz #{trace_name}`.chomp
gzipped = filetype =~ /gzip compressed/
bzipped = filetype =~ /bzip2 compressed/
zipped = filetype =~ /Zip archive/
end
def extension_name
- filetype = `file -bz #{trace_name}`.chomp
+ filetype = `/usr/bin/file -bz #{trace_name}`.chomp
gzipped = filetype =~ /gzip compressed/
bzipped = filetype =~ /bzip2 compressed/
zipped = filetype =~ /Zip archive/
logger.info("GPX Import importing #{name} (#{id}) from #{user.email}")
# TODO *nix specific, could do to work on windows... would be functionally inferior though - check for '.gz'
- filetype = `file -bz #{trace_name}`.chomp
+ filetype = `/usr/bin/file -bz #{trace_name}`.chomp
gzipped = filetype =~ /gzip compressed/
bzipped = filetype =~ /bzip2 compressed/
zipped = filetype =~ /Zip archive/