HEX
Server:
System: Linux aac286ea486c 5.14.0-687.15.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Thu Jun 11 08:51:45 EDT 2026 x86_64
User: root (0)
PHP: 8.2.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,disk_free_space,diskfreespace
Upload Files
File: //usr/share/lftp/xdg-move
#!/bin/bash
#
# This script moves ~/.lftp (or $LFTP_HOME) files to XDG directories.
# ~/.lftp should be removed after execution of this script.
#

src=${LFTP_HOME:-$HOME/.lftp}
if ! [ -d "$src" ]; then
   echo "Nothing to move (no $src directory found)." >&2
   exit 0
fi

function move() {
   test -a "$src/$1" || return
   test -d "$2" || mkdir -p "$2" || exit 1
   mv "$src/$1" "$2/"
}

function move_data() {
   move "$1" "${XDG_DATA_HOME:-$HOME/.local/share}/lftp"
}
function move_config() {
   move "$1" "${XDG_CONFIG_HOME:-$HOME/.config}/lftp"
}
function move_cache() {
   move "$1" "${XDG_CACHE_HOME:-$HOME/.cache}/lftp"
}

move_data bg
move_data bookmarks
move_data cwd_history
move_cache DHT
move_data log
move_config rc
move_data rl_history
move_data transfer_log

rmdir "$src"