mital / mcrux

Automatically exported from code.google.com/p/mcrux
0 stars 0 forks source link

create "FileSystem" plugin whch can perform various operations in file system. #8

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
create "MCruxFileSystem" plugin whch can perform various operations in file
system.
The functionality will include.
SaveFile(...)
CopyFile(...)
DeleteFile(...)
other methods will be included later.(as per requirements.)

Original issue reported on code.google.com by mital.d....@gmail.com on 27 Dec 2008 at 11:50

GoogleCodeExporter commented 9 years ago
Creating interface IMCruxPlugin.
The MCruxJSObject class implements this interface and is responsible for Adding 
the
MCrux global object.
Adding plugin FileSystem. The implementation is not complete.

Added an environment variable MCRUXOUTPUTDIR which points to a directory where 
all
the output files of MCrux should be placed.

Original comment by mital.d....@gmail.com on 28 Dec 2008 at 3:09

GoogleCodeExporter commented 9 years ago
Adding "filesystem.readDir()" call.

Original comment by mital.d....@gmail.com on 7 Jan 2009 at 5:29

GoogleCodeExporter commented 9 years ago
readDir call is now working properly. 
This call is returning a list of files which are there in the current folder.

Original comment by mital.d....@gmail.com on 27 Jan 2009 at 4:23

GoogleCodeExporter commented 9 years ago
Moved FileSystem as a separate plugin of MCrux.
MCruxPluginManager will now pick the plugins from given directory and load them 
in
Current JavaScript Context.

Original comment by mital.d....@gmail.com on 27 Jan 2009 at 4:24

GoogleCodeExporter commented 9 years ago
Adding
* filesystem.copy(filename) 
** returns boolean value of success or failure
* filesystem.getFileInfo(filename)
** returns array which contains (fileType; fileSize; lastModifiedTime; 
permissionMode)
*** fileType (FILE = 0, DIR = 1)
*** fileSize (Number)
*** lastModifiedTime (Number)
*** permissionMode (Number)

Original comment by mital.d....@gmail.com on 29 Jan 2009 at 1:10

GoogleCodeExporter commented 9 years ago
filesystem.ReadDir(dirPath)
returns
* Null if the path does not exist or the path is File.
* else returns array of FileNames.

Original comment by mital.d....@gmail.com on 29 Jan 2009 at 1:12

GoogleCodeExporter commented 9 years ago
oops the readDir() function signature has again changed ;)

  * readDir(filePath)
  * returns 
    * Null if the path does not exist or the path is File.
    * else returns array of objects. each object will contain following properties.
      * name - name of the file/directory.
      * type - "file" or "dir".
      * size - size of the file/directory in bytes.
      * last_modified_time - the last modified time of the file/directory.

Original comment by mital.d....@gmail.com on 18 Mar 2009 at 1:28