0
votes
0answers
21 views

write after reading file phonegap

i cant to write info into file after reading. what i do wrong? cant understand what object returns each function and how i can chain my calls window.requestFileSystem(LocalFileSystem.PERSISTENT, 0, ...
0
votes
0answers
4 views

Consistently getting SECURITY_ERR while trying to convert a string to a text file and download it. (HTML5 filesystem API)

I'm trying to make a button on a web page download an xml file that's generated as they push the button. I'm using the HTML5 filesystem API, but I'm able to use anything as long as its convenient on a ...
0
votes
1answer
16 views

Searching a folder for parts of a file's name

I'm trying to build a media viewing service that automatically downloads new TV show episodes. The problem is, I need to insert a source for the video, and every download has a different structure of ...
1
vote
1answer
39 views

jQuery: Group <a> links based on text value

jQuery noob here - needing some help. Basically, because Go's html/template output sucks, I'm forced to use more JS (which I suck at!) I have an ordered, but not grouped list of links, that need ...
0
votes
1answer
78 views

Node.JS fs.readFileSync() bad arguments

I'm getting the following error in my Node and can't figure out why: TypeError: Bad arguments at Object.fs.readFileSync (fs.js:277:11) at getSeries (/Users/user/tv/final.js:57:16) at ...
2
votes
1answer
65 views

Node js check if file is being used by another process

I'm working on a node-webkit app that performs filesystem operations. I need to be able to check if the file is being used by another process before deleting (unlinking). If I only use the fs.unlink ...
-2
votes
2answers
42 views

Javascript: read a file without user select it

Is possible to read a file from the filesystem into a client side JavaScript environment? I would read a file only by code, so the user haven't to browse the filesystem and select the file. I have ...
0
votes
0answers
34 views

Open and write in file [node.js]

I am wondering how to use the filesystem method open in node.js. I am currently trying to save an image from html form without using express.js. I know when I only use fs.writeFile the information is ...
0
votes
2answers
117 views

TypeError: Bad argument using Node.js fs.read()

I'm trying to get fs.read() to work but running into some issue(s). Here is my fread.js script: var fs = require('fs'); fs.open('test.txt', 'r', function (err, handle) { var f = handle; ...
0
votes
0answers
28 views

File system project assets to be shown in UI/view using AngularJS

I am new to AngularJS and have a requirement as follows In the view/UI I have to show the Project file system folder and its sub folders with assets. From UI user can create, update and delete as ...
0
votes
1answer
36 views

Chrome 34 confirm message PERSISTENT

My web site uses PERSISTENT Storage. http://spinlock.idletime.tk/web/ffmpeg_pnacl/ Chrome 33 confirm about PERSISTENT Storage,only one time. But Chrome 34 confirm Every time! Chrome 34 Bug? or My ...
0
votes
0answers
42 views

Save selected to upload file in browser cache, open file from local file system

I need to open from page files that are selected to upload. Example: I select two files, and when i click one of them (for example there will be button for each file), then this file will be opened in ...
0
votes
0answers
59 views

Opening External HTMLs in TideSDK using Javascript

I am making a TideSDK app using HTML5 and JavaScript and I am trying to Download an html from my web (Its a folder that contains html/js/css files that act as books) -> OKAY. Save it in TideSDK ...
-1
votes
1answer
31 views

Self inflicted problems with recursion in nodejs

I'm trying to write a recursive file listing function. It works, except for the recursive part; It gets stuck in a loop forever whenever it reads comes along a folder. For example: The folder ...
0
votes
1answer
48 views

Using Node.js Within Public JS FIles

Alright, so this might seem stupid, but I just need a quick nudge, and I'll be able to wrap my head around it... So, I know you can't just run the Node API in the browser (without something like ...
0
votes
1answer
117 views

How to split file into small data chunks using Node.JS

I am trying to parse a large file by segmenting file into data chunks on the go. Can someone please help me with this as I am not expert at Node.js?
0
votes
2answers
33 views

`fs.lstat` raises no error after I manually delete a file, but reading the file does

I want to submit to you this question: If I delete a file manually (that is, not using fs.unlink in Node but using the GUI or a CLI command) after the server has already started, Node says that the ...
1
vote
2answers
67 views

Node.js - Static fileserver not working

I'm trying to create a static fileserver in note.js, but it is not really working. My fileserver.js code: var http = require("http"), sys = require("sys"), path = require("path"), url = ...
0
votes
2answers
110 views

change a file using node.js

I have a text file that looks like this: ./4F6cFLnAAFc.png ./4Flj9plmKGQ.png ./4fQeHtSdw80.png ./4I9iibPLdBw.png ./4J-dRA3MGc8.png ./4mdEsouIXGM.png ./4-_-wQc3EGE.png ./595Tiga1gIg.png ...
1
vote
1answer
960 views

How to access file system using Intel XDK app?

I am creating an app using Intel XDK, in HTML5 and javascript, and write some of the data fed by user to the local file system. How can I do this?
0
votes
1answer
79 views

Can i upload and save an image file in file system ,and retrieve it back with javascript or HTML?

I am creating a webpage, which will be running locally.It will upload a file from local file system and save it in a specific location in that file system.But I do not want to use language which ...
0
votes
1answer
48 views

Create a serverside file in Meteor

I was wondering how to write files in Meteor to the server. I was looking at this NodeJS code, but it wasn't working when I tried it in the server javascript code. var fs = require('fs'); ...
2
votes
1answer
5k views

best way to get folder and file list in Javascript

I'm using node-webkit, and am trying to have a user select a folder, and I'll return the directory structure of that folder and recursively get its children. I've got this working fairly simply with ...
0
votes
2answers
66 views

PHP iterate over directory files

I have this simple code if ($hdcss = opendir($javascript)) { while (false !== ($cssentry = readdir($hdcss))) { echo "$cssentry\n"; } closedir($hdcss); } This will give out all ...
0
votes
1answer
738 views

Reading all files in a directory

here is the code snippet of what I am working with right now... /* Module: inputReader.js, directoryScanner.js (included) Description: Basic file reader returns string of contents of a file ...
0
votes
0answers
194 views

How to access/ explore remote(server) files using Filesystem (HTML5)?

I have a iphone app built in phonegap framwork, I am using Filesystem to access remote file but I have problem finding a solution. I have used following code to list drectories which is working ...
1
vote
2answers
109 views

How to check filename string not to be a filepath

I am writing a server application on node js. Operating system is Linux. I receive filename as a plain string, so it can be hacked. Then I concatenate the filename string and path string like this: ...
0
votes
1answer
163 views

Displaying File Name from an directory using Node js

I have the following code for displaying file names in a given directory var fs = require('fs'); fs.readdir('folder/', function (err, files) { if (err) throw err; for (var index in files) ...
1
vote
1answer
610 views

Node.js: Detecting a file, opened with fs.createWriteStream(), becoming deleted

Say I have the following Node program, a machine that goes "Ping!": var machine = require('fs').createWriteStream('machine.log', { flags : 'a', encoding : 'utf8', mode : 0644 }); ...
0
votes
1answer
61 views

Is there already a way to let the user choose a folder on Chrome?

I have been trying to use this Chrome code with the chooseEntry type as 'openDirectory' but I think it's not implemented yet, so I was wondering if there is already some other way to do it. ...
1
vote
2answers
879 views

Can I open a Windows Explorer window from a web app?

I built a CRM for a client of mine, and now they've requested an interesting feature: For each customer record, they have a matching directory of files on their local computer. They want the ability ...
0
votes
3answers
54 views

Create a platform independant path string

I'm using the Mozilla addon sdk for development and need to create a file on the local system. Currently I use the statement below but feel it may not cover all platforms. Running the statement on ...
2
votes
1answer
569 views

Difference between fs.open 'rs' flag and fs.openSync

I was confused with this, that I found on the document in the nodejs.org. It says that the rs flag in fs.open() is use to Open file for reading in synchronous mode. It just makes me think this is a ...
1
vote
1answer
379 views

TCP sockets and file manipulation in Node.js

I am new to Node.js and I have 2 questions about it: Can you create regular TCP sockets on the server's side? Is it possible to read/write to a file on the server's side? That's all. Both of these ...
0
votes
1answer
1k views

JS Filesystem API: accessing JS FileEntry's on local system?

I'm testing some of the new JS filesystem abilities, i.e. creating an empty text file in the local filesystem. I'm running the HTML & JS files from a local path (file:///). For this purpose I ...
0
votes
0answers
62 views

JavaScript File API, can't access file's content

I have the following code to read several text files and return an array of objects containing these files's details and contents : var getFilesContents = function( fileInput ) { var fileCount = ...
0
votes
1answer
264 views

access file-system file with my browser

Can i access my local file system files with my browser? I think it is possible, I found one mozilla firefox plugin which does the same. As per my understanding, the way upload functionality of a ...
0
votes
1answer
545 views

ReferenceError: LocalFileSystem is not defiened, phonegap

Essential parts of index.html looks like this: <script type="text/javascript" src="cordova.js"></script> <script type="text/javascript" src="js/jquery-1.9.0.min.js"></script> ...
0
votes
1answer
101 views

Combining Javascript- and C# GUI

I would like to make an application for displaying images from a local directory, however using a given javascript GUI framework for filtering the contents. How could this be done? I tried with ...
0
votes
1answer
123 views

Overwrite a file warning when saving an image with node.js

I have an app written in javascript that lets a user save an image to their disk. This involves node.js. If I ask to overwrite a previously saved image, I get mixed results when it comes to getting ...
0
votes
1answer
222 views

Gruntjs - watch for changes in a large amount of subdirectories and files

I just started using grunt.js recently and I wanted to know if it is possible to watch for changes in large folder structures? it works fine for me in small project folder structures but when trying ...
0
votes
1answer
475 views

Windows user name variable and javascript

I asked this question a few weeks ago and recently came back to it and solved it. I have a hidden input that looks like this: <input style="display:none;" class="fileDialog" ...
0
votes
2answers
710 views

Get file created date in node

In node I can get a file's modified date using the standard file stat object. Is there a way I can also find its created date? I can't find anything in the ...
0
votes
0answers
58 views

TideSDK install: application “loading”

Im trying to install TideSDK but it seems not to be working. I have downloaded the developer app and moved it to the applications folder and downloaded and extracted the SDK and moved it to ...
0
votes
0answers
93 views

Check for *full* file system access with javascript

I'm looking to do some feature detection with JS to determine whether or not to show a typical 'input type="file"' element on a web page that will be accessed through desktops, tablets and phones. ...
1
vote
1answer
746 views

Phonegap Build - Get application root directory?

I am looking at porting an existing application to phonegap build, however as my application is a multi-page application with pages split in different locations and a resource loading mechanism which ...
0
votes
1answer
312 views

I'm trying to implement windows.requestFileSystem under IE and FF

Is there a workaround to implement a sandbox for silent file open/save/delete operations under FF and IE? Chrome does have window.requestFileSystem and webkitStorageInfo.requestQuota, could it be ...
0
votes
1answer
127 views

Upload a File from the Google Chrome File System to a Server

Chrome has a very useful File System API that I am using. What I am trying to do is upload a file stored within it to a server. Unfortunately, it seems like the only way that one can send a file to a ...
-3
votes
1answer
153 views

ASP: FileSystemObject from Javascript to ASP [closed]

So I have this piece of code that saves some data into a log file. function WriteToFile(data) { var currentdate = new Date(); var datetime = "Time: " + currentdate.getDate() + "/" + ...
1
vote
0answers
250 views

OpenTextFile gives error Automation server can't create Object

I created this method to create a text file as log for a page that has different buttons that call functions with parameters from different textfields: function WriteToFile(data) { var ...