Skip to content
pCloud filesystem client
C C++
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
BuildWin !Fixed RecycleBin problem on WinXP Jan 31, 2014
WinInstaller
debian fixup: debian: dont build man on clean Jul 10, 2014
include Openssl now use correct header for winsock Feb 10, 2014
lib Build for XP without rev. notifications Jan 22, 2014
old move this away, hinders the compilation of the debian package Sep 16, 2013
win_service !Fixed RecycleBin problem on WinXP Jan 31, 2014
.gitignore .gitignore: ignore generated files Jul 8, 2014
LICENSE
Makefile there is no need to check if debug level is 0 explicitly, do { if (10… Oct 14, 2013
README.md mention pclsync, add a clarification on auth Nov 8, 2014
common.h implement retry of failed writes Oct 8, 2013
compile-linux switch to makefile Sep 16, 2013
compile-mac
pfs.c !Fixed RecycleBin problem on WinXP Jan 31, 2014
settings.c working notifications of shared folders in tray Aug 31, 2013
settings.h reconection (so far only for read) Oct 8, 2013
socetpair.c Changes to make build static Sep 1, 2013

README.md

pfs

pCloud filesystem client NOTE: this filesystem is obsolete. The new version can be found in the pclsync repo at https://github.com/pcloudcom/pclsync .

To compile, you need fuse and the openssl headers. In debian, they're in libssl-dev and libfuse-dev, in fedora in fuse-devel and openssl-devel.

Setup instructions on systemd based machines

Install pfs

(sudo) yum install fuse-devel openssl-devel
git clone https://github.com/pcloudfs/pfs.git
cd pfs
make
(sudo) make install

Get auth token

curl https://api.pcloud.com/userinfo?getauth=1&username=<email>&password=<password>

And keep the auth bit. Note that this is not required, but otherwise you'll have to put your username and password in the service file.

Autostart

Create a systemd service

gedit /usr/lib/systemd/system/pfs.service

And paste in:

[Unit]
Description=pCloud mount

[Service]
Type=oneshot
User=<your user>
Group=<your user>
RemainAfterExit=yes
ExecStart=/usr/bin/mount.pfs --auth <you auth token here> /run/media/<your user>/pCloud
ExecStop=/usr/bin/umount /run/media/<your user>/pCloud

[Install]
WantedBy=multi-user.target

Activate it via:

(sudo) systemctl enable pfs.service

Compilation and manual mount on debian/ubuntu

Install dependencies and compile pfs

(sudo) apt-get install fuse-dbg libssl-dbg
git clone https://github.com/pcloudfs/pfs.git
cd pfs
make
(sudo) make install

Get auth token

curl https://api.pcloud.com/userinfo?getauth=1&username=<email>&password=<password>

You will see output similar to the following:

{
	"auth": "PhOAAAZ2YPXZEf999Rj8Ewz7abHR28hgNmxN9YGX",
	"emailverified": true,
	"quota": 11811160064,
	"result": 0,
	"premium": false,
	"usedquota": 1590902549,
	"language": "en",
	"userid": 12345,
	"email": "my@email.com",
	"registered": "Thu, 01 Nov 2014 10:10:10 +0000"
}

Take note of the auth token which you need to mount the drive.

Mount pDrive

mkdir /mnt/pdrive
mount.pfs --auth <you auth token here> /mnt/pdrive
You can’t perform that action at this time.