1595 |
"Like `file-attributes' for tramp files. |
"Like `file-attributes' for tramp files. |
1596 |
Optional argument NONNUMERIC means return user and group name |
Optional argument NONNUMERIC means return user and group name |
1597 |
rather than as numbers." |
rather than as numbers." |
1598 |
(if (tramp-handle-file-exists-p filename) |
(with-parsed-tramp-file-name filename nil |
1599 |
;; file exists, find out stuff |
(when (tramp-ange-ftp-file-name-p multi-method method) |
1600 |
(save-excursion |
(tramp-invoke-ange-ftp 'file-attributes filename)) |
1601 |
(with-parsed-tramp-file-name filename nil |
(if (tramp-handle-file-exists-p filename) |
1602 |
(when (tramp-ange-ftp-file-name-p multi-method method) |
;; file exists, find out stuff |
1603 |
(tramp-invoke-ange-ftp 'file-attributes file)) |
(save-excursion |
1604 |
(if (tramp-get-remote-perl multi-method method user host) |
(if (tramp-get-remote-perl multi-method method user host) |
1605 |
(tramp-handle-file-attributes-with-perl |
(tramp-handle-file-attributes-with-perl |
1606 |
multi-method method user host path nonnumeric) |
multi-method method user host path nonnumeric) |