Community
Participate
Working Groups
Build Identifier: In the current file system service (IFileSystem), the method to remove a file, i.e., remove, and the method to remove a directory, i.e., rmdir, do not provide the ability to forcibly removing the file or folder. Please add a third parameter to allow forcibly removing a file or folder. The following signatures are suggested: IToken remove(String file_name, boolean force, DoneRemove done); IToken rmdir(String path, boolean force, DoneRemove done); Reproducible: Always
What would be the meaning of "force" parameter? In POSIX, neither rmdir() nor remove() have such parameter.
The "force" means the same as that of the shell command "rm". -bash-3.2$ rm --help Usage: rm [OPTION]... FILE... Remove (unlink) the FILE(s). ... -f, --force ignore nonexistent files, never prompt
-f is client side option. It controls UI behavior. It does not make any sense in the agent.
Resolved using a client-side resolution.