{"action":"opened","issue":{"url":"https://api.github.com/repos/lavv17/lftp/issues/131","labels_url":"https://api.github.com/repos/lavv17/lftp/issues/131/labels{/name}","comments_url":"https://api.github.com/repos/lavv17/lftp/issues/131/comments","events_url":"https://api.github.com/repos/lavv17/lftp/issues/131/events","html_url":"https://github.com/lavv17/lftp/issues/131","id":58911045,"number":131,"title":"Ignore case on mirror?","user":{"login":"CodeBrauer","id":2059754,"avatar_url":"https://avatars.githubusercontent.com/u/2059754?v=3","gravatar_id":"","url":"https://api.github.com/users/CodeBrauer","html_url":"https://github.com/CodeBrauer","followers_url":"https://api.github.com/users/CodeBrauer/followers","following_url":"https://api.github.com/users/CodeBrauer/following{/other_user}","gists_url":"https://api.github.com/users/CodeBrauer/gists{/gist_id}","starred_url":"https://api.github.com/users/CodeBrauer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CodeBrauer/subscriptions","organizations_url":"https://api.github.com/users/CodeBrauer/orgs","repos_url":"https://api.github.com/users/CodeBrauer/repos","events_url":"https://api.github.com/users/CodeBrauer/events{/privacy}","received_events_url":"https://api.github.com/users/CodeBrauer/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-25T14:43:03Z","updated_at":"2015-02-25T14:43:03Z","closed_at":null,"body":"Hey there.\r\n\r\nHow can I ignore the case of a file?\r\n\r\nI want to copy all `*.tif | *.tiff | *.TIF *.TIFF` files from another ftp server so my regex looks like this:\r\n\r\n```regex\r\n\\.(tiff?)$\r\n```\r\n\r\nIn [pure regex](http://www.regexr.com/3agd7) this would be my solution (ignore case flag):\r\n```regex\r\n/\\.(tiff?)$/ig\r\n```\r\n\r\nHow can this be solved / or does glob already ignore the case?\r\n\r\n---\r\n\r\nWhole command:\r\n\r\n```sh\r\n# ...\r\nFILES=\"\\.(tiff?)$\"\r\n\r\nlftp -u $FTP_LOGIN,$FTP_PASSWORD $FTP_HOST << EOF\r\n    set ftp:ssl-allow no\r\n    mirror -ne -i $FILES --log=logs/$DATE_TODAY.log $REMOTE_DIR $LOCAL_DIR\r\n    quit\r\nEOF\r\n```"}}