Give us feedback
filesystem
Service icon

FileSystem

icon_trusted
Stable version 3.1.0 (Compatible with OutSystems 11)
Other versions available for 10 and Older
Uploaded on 21 June 2022 by 
4.3
 (40 ratings)
filesystem

FileSystem

Details
Perform operations related to the file system, such as path string manipulation, creation and deletion of directories, reading and writing text/binary files, etc.
Read more

Perform operations related to the file system, such as path string manipulation, creation and deletion of directories, reading and writing text/binary files, etc.. Feature List Manipulate path strings. Get the physical application directory. Create, Delete and List directories. Create, Delete, Move and Copy files. Read/Write files from/to the file system.

Use this component with care. Since it allows direct access to the file system, you can e.g. delete essential components for your app. Also be sure that, in case you use username and password to access network shares, the impersonating user does not have overly broad rights, and the username and password are not stored as plain text in a site property or the database.

Release notes (3.1.0)
  • Removed superfluous domain/username/password input and error message output from the Path actions, all actions are now also functions;
  • Fixed non-working Path_GetFileName (always returned empty file name);
  • Added low-level FS actions, meant for partial reading of a file.
Reviews (7)
11 Aug
in version 3.1.0
About MoveFile action..
Despite saying that it overwrites the files if it exists, it is not true!
If the file exists in the destination, the move action fails, it does not give any exception but you can see in the output the message "FileExistsError: [WinError 183] Cannot create a file when that file already exists"
Answer from the owner
14 Aug
in version 3.1.0
Hi Samuel,

Where does it say that it overwrites the file? In the documentation, it says "If the file already exists at the destination location, an error is returned." This was changed when earlier this year someone made the same remark (see https://www.outsystems.com/forums/discussion/86918/filesystem-file-move-does-not-overwrite-file-in-target-directory/).
21 Jan
in version 3.1.0
this line of code
 if (LogonUser(ssUsername, ssDomain, ssPassword, 9, 0, out phToken) != 0)
need to be
 if (LogonUser(ssUsername, ssDomain, ssPassword, 3, 0, out phToken) != 0)
as LogonUserA function take types of logon from 1 to 7 only
and i think the best choice is LOGON32_LOGON_NETWORK = 3
so extension could access shared folders with username and password correctly 
13 Jan
in version 3.1.0
Nice Option