I have a small set of files and folders in a directory on my computer that are causing issue. When I upload them to my web host (Dreamhost) via SFTP (using Transmit on OSX, a GUI), most files and folders transfer as expected. But a couple of them convert to uppercase on the web host. Example: slider.js becomes SLIDER.JS
Permissions
644 slider.js on my local machine
644 SLIDER.JS on web host
I'm not sure where to start in debugging this issue so if any more information is needed, please ask.
Update 11/30/11 5pm EST
- I was able to solve the issue by simply renaming the file slider.js to slider2.js and then back to slider.js. I am still interested to figure out what was causing this issue.
- Using sftp
on the commandline transferred the problem files without uppercasing.
- I have a MAC running OSX 10.7.2. Don't know too many details about the filesystem but information is available on the [Ars Technica review of OSX 10.7][1].
In my further investigation I found that ftp
recognizes a case
command. Details follow:
Toggle remote computer file name case mapping during mget commands. When case is on (default is off), remote computer file names with all letters in upper case are written in the local directory with the letters mapped to lower case.
Could it be that the [Transmit ftp app][1] is incorrectly utilizing this command? This is speculation.
sftp
program?sftp user@host
, thenput /path/to/local/slider.js /remote/path/for/uploaded/slider.js
, thenquit
.localhost
using your account name and password, and upload from your local system to your local system, does the same thing happen?