2646 |
@end defun |
@end defun |
2647 |
|
|
2648 |
@defun file-remote-p filename |
@defun file-remote-p filename |
2649 |
This function returns @code{t} if @var{filename} is a remote file. |
This function tests whether @var{filename} is a remote file. The |
2650 |
|
return value is an identifier of the remote system, if @var{filename} |
2651 |
|
is indeed remote. Besides the host name, the identifier may comprise |
2652 |
|
a user name and a method used to access that system. |
2653 |
|
|
2654 |
|
To illustrate, for the filename @code{/ssh:user@@host:/some/file}, the |
2655 |
|
identifier is @code{/ssh:user@@host:}. |
2656 |
|
|
2657 |
|
If @var{filename} is local (not remote), then the return value is |
2658 |
|
@code{nil}. |
2659 |
|
|
2660 |
|
If @code{file-remote-p} returns the same identifier for two different |
2661 |
|
filenames, then the file handler is the same, and also the files can |
2662 |
|
be accessed locally with respect to each other. This means, for |
2663 |
|
example, that it is possible to start a (remote) process accessing |
2664 |
|
both files at the same time. Implementors of file handlers need to |
2665 |
|
ensure this. |
2666 |
@end defun |
@end defun |
2667 |
|
|
2668 |
@defun unhandled-file-name-directory filename |
@defun unhandled-file-name-directory filename |