url-ftp.el 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. ;;; url-ftp.el --- FTP wrapper
  2. ;; Copyright (C) 1996-1999, 2004-2015 Free Software Foundation, Inc.
  3. ;; Keywords: comm, data, processes
  4. ;; This file is part of GNU Emacs.
  5. ;; GNU Emacs is free software: you can redistribute it and/or modify
  6. ;; it under the terms of the GNU General Public License as published by
  7. ;; the Free Software Foundation, either version 3 of the License, or
  8. ;; (at your option) any later version.
  9. ;; GNU Emacs is distributed in the hope that it will be useful,
  10. ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
  11. ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  12. ;; GNU General Public License for more details.
  13. ;; You should have received a copy of the GNU General Public License
  14. ;; along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>.
  15. ;;; Commentary:
  16. ;; We knew not what we did when we overloaded 'file' to mean 'file'
  17. ;; and 'ftp' back in the dark ages of the web.
  18. ;;
  19. ;; This stub file is just here to please the auto-scheme-loading code
  20. ;; in url-methods.el and just maps everything onto the code in
  21. ;; url-file.
  22. ;;; Code:
  23. (require 'url-parse)
  24. (require 'url-file)
  25. (defconst url-ftp-default-port 21 "Default FTP port.")
  26. (defconst url-ftp-asynchronous-p t "FTP transfers are asynchronous.")
  27. (defalias 'url-ftp-expand-file-name 'url-default-expander)
  28. (defalias 'url-ftp 'url-file)
  29. (provide 'url-ftp)
  30. ;;; url-ftp.el ends here