# File and Directory Manipulation

**URL:** <https://forum.servoy.com/t/file-and-directory-manipulation/368>\
**Category:** Classic Servoy\
**Created:** [September 28, 2003, 4:48pm UTC](https://forum.servoy.com/t/file-and-directory-manipulation/368 "2003-09-28T16:48:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![idoctor](https://avatars.discourse-cdn.com/v4/letter/i/a88e4f/32.png) [@idoctor](https://forum.servoy.com/u/idoctor)\
**Post date:** [September 28, 2003, 4:48pm UTC](https://forum.servoy.com/t/file-and-directory-manipulation/368/1 "2003-09-28T16:48:27Z")

</div>

Is it possible to automate file and folder/directory manipulation from a Servoy method similar to the way one can use the Troi File Plug-in in Filemaker scripts? I am particularly interested in:  
Getting a List of Files in a Directory  
Copying files  
Deleting files  
Renaming files

---

<div class="post-metadata">

**Author:** ![Jan\_Blok](https://avatars.discourse-cdn.com/v4/letter/j/41988e/32.png) [@Jan\_Blok](https://forum.servoy.com/u/Jan_Blok)\
**Post date:** [September 30, 2003, 8:33am UTC](https://forum.servoy.com/t/file-and-directory-manipulation/368/2 "2003-09-30T08:33:17Z")

</div>

A file plugin is on our planning, expect it to be ready in about 2 months.

---

<div class="post-metadata">

**Author:** ![idoctor](https://avatars.discourse-cdn.com/v4/letter/i/a88e4f/32.png) [@idoctor](https://forum.servoy.com/u/idoctor)\
**Post date:** [December 3, 2003, 6:48am UTC](https://forum.servoy.com/t/file-and-directory-manipulation/368/3 "2003-12-03T06:48:20Z")

</div>

After working with Servoy for a few months and realizing that my JPG and PDF files can be stored in the database, I have decided that the 3 most important functions I need in a file manipulation plug-in are:

1. Ability to obtain a series of file names from a specified directory
2. Ability to delete files when the path is specified
3. Ability to launch a PDF file (stored in the database) for the purpose of display and or printing. Ideally I would like it to open in Acrobat Reader.

With these functions and those already available in Servoy one could get the files from a specified directory, write them to the backend database, retrieve them, for print or display.

Will these 3 functions be built into a file manipulation plug-in? PDF plug-in?

John McCann

---

<div class="post-metadata">

**Author:** ![jcompagner](https://yyz2.discourse-cdn.com/flex010/user_avatar/forum.servoy.com/jcompagner/32/4889_2.png) [@jcompagner](https://forum.servoy.com/u/jcompagner)\
**Post date:** [December 3, 2003, 7:42am UTC](https://forum.servoy.com/t/file-and-directory-manipulation/368/4 "2003-12-03T07:42:24Z")

</div>

here is some more info what already is possible:  
[http://forum.servoy.com/viewtopic.php?t … xecute+pdf](http://forum.servoy.com/viewtopic.php?t=221&highlight=execute+pdf)
