EDG-GRIDFTP-EXISTS(1)
π edg-gridftp-exists β the manual, bestie edition β¨
okay so you found the EDG-GRIDFTP-EXISTS(1) page from the European DataGrid and you're like "what does this even do" β don't worry, I gotchu π«Ά. Sit down, hydrate, and let's vibe-check your GridFTP files together.
β¨ NAME β¨
edg-gridftp-exists β literally just tells you if a file or directory exists on a GridFTP server. That's it. That's the whole job. Iconic minimalism honestly π
πΈ SYNOPSIS πΈ
edg-gridftp-exists [--proxy=proxy] [--timeout=timeout] [--noauth] URL
[URL ...]
edg-gridftp-exists --usage
edg-gridftp-exists --help
so you run it, you hand it a URL (or several, she's generous like that), and she tells you what's up π«
π¦ DESCRIPTION π¦
edg-gridftp-exists determines whether the file or directory associated with the URL(s) you gave actually exists.
The rules, no cap:
- It returns a status of
0if the file or directory exists. Slay π - In all other cases it returns a non-zero value and prints an error message to the standard error. Sad girl hours π
And here's the multi-URL tea β: if more than one URL is given, a successful return only happens if all of the URLs exist. Processing stops with the first failure β she does not keep going after a flop, she's got boundaries.
π OPTIONS π
--proxy=proxyβ sets the proxy to use for the GridFTP operation. If you leave it unset, the underlying GridFTP library will try to find the proxy in the usual locations. This one's super useful when your proxy lives somewhere non-standard, or when the caller is a daemon that has to act on behalf of a user (daemon bestie needs a proxy hookup π).--timeout=timeoutβ sets the overall time (in seconds) within which all the checks must complete. If you don't specify a timeout, a default 120 second timeout is used. And heads up: a negative or zero timeout will report a timeout error before attempting to contact any of the FTP servers. Like, she doesn't even try. Respect the boundary π--noauthβ if this flag is set, authentication of the data channel is turned off. It is on by default. So only flip it if you know what you're doing, bestie β--usageβ gives you a short description of the usage of this command.--helpβ gives you a description of the usage of this command plus info on all of the options. The full lore drop π
π URL β the URLs
URL β these are the URL formats she accepts, and yes, the number of slashes matters, don't @ me:
ftp://ftp.server.org//absolute/file/name
gsiftp://gridftp.server.org/~/home/relative/name.txt
gridftp://gridftp.server.org/home/relative/name.txt
β οΈ Note (important, don't skip): for the URLs without a tilde, the server configuration determines whether the filename is absolute or relative. And on servers which do not restrict users to their home areas, the tilde notation will not work. So the ~ is not universal, she's home-area-specific, iykyk.
π₯ AUTHOR π₯
Charles Loomis (charles.loomis@cern.ch). Later modifications by CERN IT-DM/SMD. Shoutout to the maintainers, genuine icons π
π LICENSE π
Copyright (c) 2002 by Charles A. Loomis, Jr. and Le Centre National de la Recherche Scientifique (CNRS). All rights reserved.
The software was distributed with and is covered by the European DataGrid License. A copy of this license can be found in the included LICENSE file. This license can also be obtained from http://www.eu-datagrid.org/license.
The underlying GridFTP library is part of the Globus Toolkit (TM) and is covered by the Globus Toolkit Public License. See http://www.globus.org for more information. Legal bestie has entered the chat π§
okay that's the whole page, you're officially educated π
version 1.2.9.2, dated 2022-01-20 β that's the tea from the European DataGrid, and this manual page is officially a wrap π
β¨π
π¦ where this page comes from
- epel 9: edg-gridftp-client 1.2.9.2-24.el9 Β· EU Datagrid
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms