SmartFolder  1.0
SmartFolder is a way to search files on your system and group the results. The program will interpret search queries and create a folder with symbolic links to all the found matches.
SysFile.c File Reference

Source file that contains the implementation for the writing of files about our folder execution. More...

#include "SysFile.h"
Include dependency graph for SysFile.c:

Functions

int createSysFile (int pid, char *smartFolder)
 
int getPID (const char *folderName)
 
char * getFolderPath (int pid)
 

Detailed Description

Source file that contains the implementation for the writing of files about our folder execution.

Authors
Maxime Lovino, Thomas Ibanez
Date
January 25, 2017
Version
1.0

Function Documentation

int createSysFile ( int  pid,
char *  smartFolder 
)

Function that creates the necessary files for the SmartFolder

Parameters
pidThe pid of the background process of the folder
smartFolderThe path of the folder
Returns
0 on success, 1 otherwise
char* getFolderPath ( int  pid)

Function to retrieve the full path of a SmartFolder

Parameters
pidThe PID of the process running the folder
Returns
The full path of the SmartFolder, NULL if not found
int getPID ( const char *  folderName)

Function to retrieve the PID of a running folder

Parameters
folderNameThe name of the SmartFolder
Returns
The PID of the process running that Folder, -1 if not found